aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-12 20:45:02 +0800
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-03-26 20:41:21 +0400
commite2c5f7db789a5be8ba131e9fe3e87b66bc606e3b (patch)
tree89db8145c710f65b3186ad8af18573143f0de0db
parentdf58c04c9f4182f979973a06ce40b44a5b84aeb5 (diff)
lp8727_charger: Add MODULE_DEVICE_TABLE
Add MODULE_DEVICE_TABLE to setup modalias for lp8727. Allows auto modprobing. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
-rw-r--r--drivers/power/lp8727_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index 815dba37e3e..ab0f431876e 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -480,6 +480,7 @@ static const struct i2c_device_id lp8727_ids[] = {
{"lp8727", 0},
{ }
};
+MODULE_DEVICE_TABLE(i2c, lp8727_ids);
static struct i2c_driver lp8727_driver = {
.driver = {