aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2015-01-13 16:50:24 +0000
committerJon Medhurst <tixy@linaro.org>2016-12-05 12:08:06 +0000
commit28ad341877d4d5b8dff0a1612242795ceaebee11 (patch)
tree9a3e4aab00631f46117783030b38b6b941de189a
parent4ba58ff040012a6c9d0c6145bd6f4ba2070e67e3 (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 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");