Commit 8ebb7e9c authored by Marek Belisko's avatar Marek Belisko Committed by Sebastian Reichel

power: bq27x00_battery: Add missing MODULE_ALIAS

Without MODULE_ALIAS bq27x00_battery module won't get loaded automatically.
Signed-off-by: default avatarMarek Belisko <marek@goldelico.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 0a73125d
...@@ -1109,6 +1109,14 @@ static void __exit bq27x00_battery_exit(void) ...@@ -1109,6 +1109,14 @@ static void __exit bq27x00_battery_exit(void)
} }
module_exit(bq27x00_battery_exit); 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_AUTHOR("Rodolfo Giometti <giometti@linux.it>");
MODULE_DESCRIPTION("BQ27x00 battery monitor driver"); MODULE_DESCRIPTION("BQ27x00 battery monitor driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment