From: Arun Bharadwaj Date: Thu, 16 Apr 2015 00:21:24 +0000 (-0700) Subject: gpio-backlight: Discover driver during boot time X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4d866723d3e4f11b2e4b4f166f115f830bf5e481;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Ash Charles Signed-off-by: Lee Jones --- diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 439feb2389a8..5fbbc2ebdf93 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 = {