]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
greybus: battery-gb: remove some #if 0 code
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 28 Oct 2014 01:50:56 +0000 (09:50 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 28 Oct 2014 01:50:56 +0000 (09:50 +0800)
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>
drivers/staging/greybus/battery-gb.c

index 74698c143bdb92a1605122920c7af7f885585335..b7d8e2c8fb8521e55d3891cb52350e80e196ed5a 100644 (file)
@@ -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