imx-drm: use supplied drm_device where possible
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Nov 2013 12:26:23 +0000 (12:26 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 Feb 2014 12:07:41 +0000 (12:07 +0000)
commit32266b4520352f5fbae2f236c50daf4fa49c860d
tree3cb91133adeeade7260b471ebebfa2b7667fcc5f
parent1df8b5300001907cb1711f3526394f3ef3240123
imx-drm: use supplied drm_device where possible

The component helper provides us the drm_device which is being
registered.  Rather than having to reference a global in imx-drm-core,
use this to get the imxdrm device, and also use it to register the CRTC
against.

This means we never have CRTCs/encoders/connectors without the drivers
private data being accessible.

Remove the module owner field as well; this provides no protection
against the device being unbound.

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
drivers/staging/imx-drm/imx-drm.h
drivers/staging/imx-drm/ipuv3-crtc.c