aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-drm-core.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-03-23 12:18:37 -0400
committerPhilipp Zabel <p.zabel@pengutronix.de>2017-04-04 04:59:08 -0400
commit3d1df96ad46856ce850be5ac112eab919cbe1cab (patch)
treef9d131ab505d72d3beb55fb39e1513371eacf22d /drivers/gpu/drm/imx/imx-drm-core.c
parent30310c835f3ebfefcf83f006981faa66d73bd810 (diff)
drm/imx: merge imx-drm-core and ipuv3-crtc in one module
While it is possible to hook other CRTC implementations into imx-drm in practice there are none yet and the option to disable ipuv3-crtc support has been hidden for a long time. Now that the imx-drm-core has learned to deal with some of the specifics of IPUv3 there is a cyclic dependency between both parts. To get rid of this and to decimate the Kconfig maze a bit, simply merge both parts into one module. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r--drivers/gpu/drm/imx/imx-drm-core.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index b6dbcd17f1e6..bf77f4c2ffc0 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -431,7 +431,23 @@ static struct platform_driver imx_drm_pdrv = {
431 .of_match_table = imx_drm_dt_ids, 431 .of_match_table = imx_drm_dt_ids,
432 }, 432 },
433}; 433};
434module_platform_driver(imx_drm_pdrv); 434
435static struct platform_driver * const drivers[] = {
436 &imx_drm_pdrv,
437 &ipu_drm_driver,
438};
439
440static int __init imx_drm_init(void)
441{
442 return platform_register_drivers(drivers, ARRAY_SIZE(drivers));
443}
444module_init(imx_drm_init);
445
446static void __exit imx_drm_exit(void)
447{
448 platform_unregister_drivers(drivers, ARRAY_SIZE(drivers));
449}
450module_exit(imx_drm_exit);
435 451
436MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>"); 452MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
437MODULE_DESCRIPTION("i.MX drm driver core"); 453MODULE_DESCRIPTION("i.MX drm driver core");