summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2015-01-13 16:50:24 +0000
committerJon Medhurst <tixy@linaro.org>2015-06-17 18:05:14 +0100
commit4aba376e20690a07527acdc619b4a3b182fcdb78 (patch)
tree1614be2599b57fcdc452baf9888201473ef6ba42
parentcf0b5cad8a5c1b530b6f162a1838e77b5c09345c (diff)
drm: hdlcd: Initialise driver with late_initcall instead of module_init
This is a workaround to ensure the i2c driver is loaded first and should let us now have the driver built-in rather than as a loadable module. Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r--drivers/gpu/drm/arm/hdlcd_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c
index 0ceaa338e91..68a8ec424c0 100644
--- a/drivers/gpu/drm/arm/hdlcd_drv.c
+++ b/drivers/gpu/drm/arm/hdlcd_drv.c
@@ -516,7 +516,8 @@ static void __exit hdlcd_exit(void)
platform_driver_unregister(&hdlcd_platform_driver);
}
-module_init(hdlcd_init);
+/* need late_initcall() so we load after i2c driver */
+late_initcall(hdlcd_init);
module_exit(hdlcd_exit);
MODULE_AUTHOR("Liviu Dudau");