Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d45b1b86 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

greybus: interface: make gb_interface_destroy() static



The function is only called locally, so mark it static to make sparse
happy.

Tested-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 260998eb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ struct gb_interface *gb_interface_create(struct greybus_host_device *hd,
/*
 * 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);
}