]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drivers/leds/leds-lm3530.c: add MODULE_DEVICE_TABLE
authorAxel Lin <axel.lin@gmail.com>
Tue, 17 May 2011 22:44:09 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 18 May 2011 09:55:22 +0000 (02:55 -0700)
Adding the necessary MODULE_DEVICE_TABLE() information allows the driver
to be automatically loaded by udev.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/leds-lm3530.c

index e7089a1f6cb6c8bf2e54acc95ef8fac58c03ba59..b37e6186d0fa007e2edc23f8186643b803429b2b 100644 (file)
@@ -349,6 +349,7 @@ static const struct i2c_device_id lm3530_id[] = {
        {LM3530_NAME, 0},
        {}
 };
+MODULE_DEVICE_TABLE(i2c, lm3530_id);
 
 static struct i2c_driver lm3530_i2c_driver = {
        .probe = lm3530_probe,