From: Andrew F. Davis Date: Mon, 14 Sep 2015 21:26:07 +0000 (-0500) Subject: power: bq27x00_battery: Remove unneeded i2c MODULE_ALIAS X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95b8aff2a6e5616639db06dd37efb36fba188590;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git power: bq27x00_battery: Remove unneeded i2c MODULE_ALIAS The MODULE_DEVICE_TABLE macro automatically adds all needed i2c MODULE_ALIASes so remove the extra MODULE_ALIAS. Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 8287261fd978..d0b2f3b47b8f 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c @@ -1120,10 +1120,6 @@ module_exit(bq27x00_battery_exit); MODULE_ALIAS("platform:bq27000-battery"); #endif -#ifdef CONFIG_BATTERY_BQ27X00_I2C -MODULE_ALIAS("i2c:bq27000-battery"); -#endif - MODULE_AUTHOR("Rodolfo Giometti "); MODULE_DESCRIPTION("BQ27x00 battery monitor driver"); MODULE_LICENSE("GPL");