imx-drm: imx-drm-core: get rid of drm_mode_group_init_legacy_group()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 11 Nov 2013 16:20:25 +0000 (16:20 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 Feb 2014 12:07:52 +0000 (12:07 +0000)
Since we're now operating like a conventional DRM driver, doing all
the initialisation within the driver's ->load callback, we don't
need to mess around with the mode groups - we can rely on the one
in the DRM platform code.

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/staging/imx-drm/imx-drm-core.c

index b27c42539e49e3cd34009ccbc9688ebaec48f6b2..dd97412d6c8ae697e0a09eb985e774f9c0f685e4 100644 (file)
@@ -274,12 +274,6 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags)
 
        drm_kms_helper_poll_init(drm);
 
-       /* setup the grouping for the legacy output */
-       ret = drm_mode_group_init_legacy_group(drm,
-                       &drm->primary->mode_group);
-       if (ret)
-               goto err_kms;
-
        ret = drm_vblank_init(drm, MAX_CRTC);
        if (ret)
                goto err_kms;