summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2015-01-13 16:50:24 +0000
committerAndrey Konovalov <andrey.konovalov@linaro.org>2015-10-16 19:11:07 +0300
commitf8d8ea8fddc754fad4b60ec54d252058503c57ee (patch)
treed3f99233552528d90bd10d94af37d3791579a64e
parenta6bc86030a01443628408c5972a271b3119d8055 (diff)
downloadlinux-linaro-tracking-f8d8ea8fddc754fad4b60ec54d252058503c57ee.tar.gz
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 0ceaa338e916..68a8ec424c06 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");