Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arun Bharadwaj and committed by
Lee Jones
4d866723 5ebe6afa

+2
+2
drivers/video/backlight/gpio_backlight.c
··· 146 146 { .compatible = "gpio-backlight" }, 147 147 { /* sentinel */ } 148 148 }; 149 + 150 + MODULE_DEVICE_TABLE(of, gpio_backlight_of_match); 149 151 #endif 150 152 151 153 static struct platform_driver gpio_backlight_driver = {