From: Greg Kroah-Hartman Date: Sat, 25 Jul 2015 00:21:25 +0000 (-0700) Subject: greybus: interface: make gb_interface_destroy() static X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1295 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d45b1b8674cbefe1358a042d800f84766e534ba5;p=karo-tx-linux.git greybus: interface: make gb_interface_destroy() static The function is only called locally, so mark it static to make sparse happy. Tested-by: Viresh Kumar Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c index f1e2956b25a7..4a26bf6f714c 100644 --- a/drivers/staging/greybus/interface.c +++ b/drivers/staging/greybus/interface.c @@ -183,7 +183,7 @@ put_module: /* * Tear down a previously set up module. */ -void gb_interface_destroy(struct gb_interface *intf) +static void interface_destroy(struct gb_interface *intf) { struct gb_module *module; struct gb_bundle *bundle; @@ -279,7 +279,7 @@ void gb_interface_remove(struct greybus_host_device *hd, u8 interface_id) struct gb_interface *intf = gb_interface_find(hd, interface_id); if (intf) - gb_interface_destroy(intf); + interface_destroy(intf); else dev_err(hd->parent, "interface id %d not found\n", interface_id); @@ -290,5 +290,5 @@ void gb_interfaces_remove(struct greybus_host_device *hd) struct gb_interface *intf, *temp; list_for_each_entry_safe(intf, temp, &hd->interfaces, links) - gb_interface_destroy(intf); + interface_destroy(intf); }