diff options
author | Jon Medhurst <tixy@linaro.org> | 2015-01-13 16:50:24 +0000 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-01-13 17:34:13 +0000 |
commit | 7ba40a34174e931769823fa1d0ef53fbcf1e3867 (patch) | |
tree | 2deecfcfe20952bb63045a006737d60a6d8348a0 | |
parent | 5500803dc2b66a7fef27546fca38fc7ce4c2c167 (diff) | |
download | juno-7ba40a34174e931769823fa1d0ef53fbcf1e3867.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.c | 3 |
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 51e385ace0b..a3019ab75a4 100644 --- a/drivers/gpu/drm/arm/hdlcd_drv.c +++ b/drivers/gpu/drm/arm/hdlcd_drv.c @@ -424,7 +424,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"); |