drm: omapdrm: Refactor CRTC creation code
Create a omap_modeset_create_crtc() function to avoid duplicating plane and CRTC creation code. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -393,7 +393,7 @@ struct drm_plane *omap_plane_init(struct drm_device *dev,
|
||||
|
||||
omap_plane = kzalloc(sizeof(*omap_plane), GFP_KERNEL);
|
||||
if (!omap_plane)
|
||||
return NULL;
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
drm_flip_work_init(&omap_plane->unpin_work,
|
||||
"unpin", unpin_worker);
|
||||
|
Reference in New Issue
Block a user