aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_plane.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2015-01-11 14:30:44 +0000
committerLaurent Pinchart <[email protected]>2015-03-20 12:30:16 +0000
commitfb9a35f89fac2ca97597ce212439d2997f2caf7e (patch)
treee717f6973dc9f7e8769135827d6a7d71d16a05e9 /drivers/gpu/drm/omapdrm/omap_plane.c
parentdrm: omapdrm: Fix indentation of structure and array initializers (diff)
downloadkernel-fb9a35f89fac2ca97597ce212439d2997f2caf7e.tar.gz
kernel-fb9a35f89fac2ca97597ce212439d2997f2caf7e.zip
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 <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_plane.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_plane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c
index a418fa7e5d0e..056ded8280f8 100644
--- a/drivers/gpu/drm/omapdrm/omap_plane.c
+++ b/drivers/gpu/drm/omapdrm/omap_plane.c
@@ -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);