gpio-backlight: Discover driver during boot time
authorArun Bharadwaj <arun@gumstix.com>
Thu, 16 Apr 2015 00:21:24 +0000 (17:21 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Jun 2015 14:28:46 +0000 (15:28 +0100)
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>
drivers/video/backlight/gpio_backlight.c

index 439feb2389a8cc3d70a45d7a2a3eac431d4f8db9..5fbbc2ebdf937cbbdb1d84e52128543a30125f3c 100644 (file)
@@ -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 = {