提交 4d866723 编写于 作者: A Arun Bharadwaj 提交者: Lee Jones

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: NArun Bharadwaj <arun@gumstix.com>
Signed-off-by: NAsh Charles <ashcharles@gmail.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 5ebe6afa
...@@ -146,6 +146,8 @@ static struct of_device_id gpio_backlight_of_match[] = { ...@@ -146,6 +146,8 @@ static struct of_device_id gpio_backlight_of_match[] = {
{ .compatible = "gpio-backlight" }, { .compatible = "gpio-backlight" },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, gpio_backlight_of_match);
#endif #endif
static struct platform_driver gpio_backlight_driver = { static struct platform_driver gpio_backlight_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册