backlight: lm3630a: Fix module aliases
authorAndreas Kemnade <andreas@kemnade.info>
Tue, 10 Sep 2019 15:23:59 +0000 (17:23 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 2 Oct 2019 13:12:15 +0000 (14:12 +0100)
Devicetree aliases are missing, so that module autoloading
does not work properly.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/lm3630a_bl.c

index 2d8e8192e4e2968254cbe63b468d91717ccf90bb..3614a4edbcd13825c7ad7c26141345e94bcb985e 100644 (file)
@@ -598,12 +598,14 @@ static const struct i2c_device_id lm3630a_id[] = {
        {}
 };
 
+MODULE_DEVICE_TABLE(i2c, lm3630a_id);
+
 static const struct of_device_id lm3630a_match_table[] = {
        { .compatible = "ti,lm3630a", },
        { },
 };
 
-MODULE_DEVICE_TABLE(i2c, lm3630a_id);
+MODULE_DEVICE_TABLE(of, lm3630a_match_table);
 
 static struct i2c_driver lm3630a_i2c_driver = {
        .driver = {