drm/plane: Use consistent data types for format count
Rather than a mix of the the sized uint32_t and signed integer, use an unsized unsigned int to specify the format count. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cette révision appartient à :

révisé par
Daniel Vetter

Parent
798ae0f669
révision
45e3743aff
@@ -261,7 +261,7 @@ nv10_overlay_init(struct drm_device *device)
|
||||
{
|
||||
struct nouveau_drm *drm = nouveau_drm(device);
|
||||
struct nouveau_plane *plane = kzalloc(sizeof(struct nouveau_plane), GFP_KERNEL);
|
||||
int num_formats = ARRAY_SIZE(formats);
|
||||
unsigned int num_formats = ARRAY_SIZE(formats);
|
||||
int ret;
|
||||
|
||||
if (!plane)
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur