summaryrefslogtreecommitdiffstats
path: root/drivers/power/bq27x00_battery.c
diff options
context:
space:
mode:
authorMarek Belisko <marek@goldelico.com>2015-04-30 22:05:58 +0200
committerSebastian Reichel <sre@kernel.org>2015-05-01 23:01:48 +0200
commit8ebb7e9c1a502cfc300618c19c3c6f06fc76d237 (patch)
tree7bd1946b9126ec555598248d8c6e1dd88ee57ce4 /drivers/power/bq27x00_battery.c
parent0a73125d308c1453dada1e2998f1c7f68094c45f (diff)
downloadop-kernel-dev-8ebb7e9c1a502cfc300618c19c3c6f06fc76d237.zip
op-kernel-dev-8ebb7e9c1a502cfc300618c19c3c6f06fc76d237.tar.gz
power: bq27x00_battery: Add missing MODULE_ALIAS
Without MODULE_ALIAS bq27x00_battery module won't get loaded automatically. Signed-off-by: Marek Belisko <marek@goldelico.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/bq27x00_battery.c')
-rw-r--r--drivers/power/bq27x00_battery.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c
index a57433d..b6b9837 100644
--- a/drivers/power/bq27x00_battery.c
+++ b/drivers/power/bq27x00_battery.c
@@ -1109,6 +1109,14 @@ static void __exit bq27x00_battery_exit(void)
}
module_exit(bq27x00_battery_exit);
+#ifdef CONFIG_BATTERY_BQ27X00_PLATFORM
+MODULE_ALIAS("platform:bq27000-battery");
+#endif
+
+#ifdef CONFIG_BATTERY_BQ27X00_I2C
+MODULE_ALIAS("i2c:bq27000-battery");
+#endif
+
MODULE_AUTHOR("Rodolfo Giometti <giometti@linux.it>");
MODULE_DESCRIPTION("BQ27x00 battery monitor driver");
MODULE_LICENSE("GPL");
OpenPOWER on IntegriCloud