greybus: battery-gb: remove some #if 0 code
We aren't going to have individual modules for the gb protocols, so just remove this useless code, it was throwing up warnings in sparse. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
059b093616
commit
5e8e8ff6d0
@ -409,30 +409,3 @@ struct gb_connection_handler gb_battery_connection_handler = {
|
||||
.connection_init = gb_battery_connection_init,
|
||||
.connection_exit = gb_battery_connection_exit,
|
||||
};
|
||||
|
||||
void gb_battery_disconnect(struct gb_module *gmod)
|
||||
{
|
||||
#if 0
|
||||
struct gb_battery *gb;
|
||||
|
||||
gb = gmod->gb_battery;
|
||||
if (!gb)
|
||||
return;
|
||||
|
||||
power_supply_unregister(&gb->bat);
|
||||
|
||||
kfree(gb);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
static struct greybus_driver battery_gb_driver = {
|
||||
.probe = gb_battery_probe,
|
||||
.disconnect = gb_battery_disconnect,
|
||||
.id_table = id_table,
|
||||
};
|
||||
|
||||
module_greybus_driver(battery_gb_driver);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@linuxfoundation.org>");
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user