Skip to contentSkip to conversation

leds: leds-lm3530: Add MODULE_DEVICE_TABLE

PATCH New Axel Lin 1 participant 1 message May 12, 2011 LED

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 leds: leds-lm3530: Add MODULE_DEVICE_TABLE

Adding the necessary MODULE_DEVICE_TABLE() information allows the driver to be automatically loaded by udev.

---
 drivers/leds/leds-lm3530.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/leds/leds-lm3530.c +1 -0
index e7089a1..b37e618 100644
@@ -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,
Signature · 1 line
1.7.1