summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorArun Bharadwaj <arun@gumstix.com>2015-04-15 17:21:24 -0700
committerLee Jones <lee.jones@linaro.org>2015-06-23 15:28:46 +0100
commit4d866723d3e4f11b2e4b4f166f115f830bf5e481 (patch)
treedaae2b219b579db20676864e29c3a05252839b3f /drivers/video
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff)
downloadop-kernel-dev-4d866723d3e4f11b2e4b4f166f115f830bf5e481.zip
op-kernel-dev-4d866723d3e4f11b2e4b4f166f115f830bf5e481.tar.gz
gpio-backlight: Discover driver during boot time
The gpio-backlight driver seems to be missing the MODULE_DEVICE_TABLE line which is preventing it from being modprobed during boot time even if the gpio-backlight device exists. This seems to be a bug and this patch attempts to fix that. Signed-off-by: Arun Bharadwaj <arun@gumstix.com> Signed-off-by: Ash Charles <ashcharles@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/gpio_backlight.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c
index 439feb2..5fbbc2e 100644
--- a/drivers/video/backlight/gpio_backlight.c
+++ b/drivers/video/backlight/gpio_backlight.c
@@ -146,6 +146,8 @@ static struct of_device_id gpio_backlight_of_match[] = {
{ .compatible = "gpio-backlight" },
{ /* sentinel */ }
};
+
+MODULE_DEVICE_TABLE(of, gpio_backlight_of_match);
#endif
static struct platform_driver gpio_backlight_driver = {
OpenPOWER on IntegriCloud