mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 10:15:32 -05:00
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>
This commit is contained in:
committed by
Sebastian Reichel
parent
0a73125d30
commit
8ebb7e9c1a
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user