Skip to content

Commit

Permalink
lp8727_charger: Add MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Mar 26, 2012
1 parent df58c04 commit e2c5f7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e2c5f7d

Please sign in to comment.