diff options
author | Marek Belisko <marek@goldelico.com> | 2015-04-30 16:05:58 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-05-01 17:01:48 -0400 |
commit | 8ebb7e9c1a502cfc300618c19c3c6f06fc76d237 (patch) | |
tree | 7bd1946b9126ec555598248d8c6e1dd88ee57ce4 /drivers/power/bq27x00_battery.c | |
parent | 0a73125d308c1453dada1e2998f1c7f68094c45f (diff) |
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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index a57433de5c24..b6b98378faa3 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c | |||
@@ -1109,6 +1109,14 @@ static void __exit bq27x00_battery_exit(void) | |||
1109 | } | 1109 | } |
1110 | module_exit(bq27x00_battery_exit); | 1110 | module_exit(bq27x00_battery_exit); |
1111 | 1111 | ||
1112 | #ifdef CONFIG_BATTERY_BQ27X00_PLATFORM | ||
1113 | MODULE_ALIAS("platform:bq27000-battery"); | ||
1114 | #endif | ||
1115 | |||
1116 | #ifdef CONFIG_BATTERY_BQ27X00_I2C | ||
1117 | MODULE_ALIAS("i2c:bq27000-battery"); | ||
1118 | #endif | ||
1119 | |||
1112 | MODULE_AUTHOR("Rodolfo Giometti <giometti@linux.it>"); | 1120 | MODULE_AUTHOR("Rodolfo Giometti <giometti@linux.it>"); |
1113 | MODULE_DESCRIPTION("BQ27x00 battery monitor driver"); | 1121 | MODULE_DESCRIPTION("BQ27x00 battery monitor driver"); |
1114 | MODULE_LICENSE("GPL"); | 1122 | MODULE_LICENSE("GPL"); |