diff options
author | Jon Medhurst <tixy@linaro.org> | 2015-01-13 16:50:24 +0000 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2015-10-16 19:11:07 +0300 |
commit | f8d8ea8fddc754fad4b60ec54d252058503c57ee (patch) | |
tree | d3f99233552528d90bd10d94af37d3791579a64e | |
parent | a6bc86030a01443628408c5972a271b3119d8055 (diff) | |
download | linux-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.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 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"); |