Browse Source

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>
Axel Lin 13 years ago
parent
commit
e2c5f7db78
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/power/lp8727_charger.c

+ 1 - 0
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 = {