* [PATCH] leds: leds-lm3530: Add MODULE_DEVICE_TABLE
@ 2011-05-12 10:46 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2011-05-12 10:46 UTC (permalink / raw)
To: linux-kernel; +Cc: Shreshtha Kumar SAHU, Richard Purdie, Andrew Morton
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>
---
drivers/leds/leds-lm3530.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c
index e7089a1..b37e618 100644
--- a/drivers/leds/leds-lm3530.c
+++ b/drivers/leds/leds-lm3530.c
@@ -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,
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-12 10:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 10:46 [PATCH] leds: leds-lm3530: Add MODULE_DEVICE_TABLE Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox