aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-09-23 16:48:10 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-09-24 15:25:03 -0700
commit80d1ede88ab081bd901bd5b3dc2461083915d1d1 (patch)
tree16d617fa2f64ab04979e853afb310f779dd255be /drivers/staging/greybus/interface.h
parentgreybus: svc: Read and clear module's boot status (diff)
downloadlinux-dev-80d1ede88ab081bd901bd5b3dc2461083915d1d1.tar.xz
linux-dev-80d1ede88ab081bd901bd5b3dc2461083915d1d1.zip
greybus: interface: Pass interface pointer to gb_interface_remove()
The callers already have a valid interface pointer and there is no need for gb_interface_remove() to find the interface again. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r--drivers/staging/greybus/interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h
index 38210ad4e631..42b5d0156cdc 100644
--- a/drivers/staging/greybus/interface.h
+++ b/drivers/staging/greybus/interface.h
@@ -59,7 +59,7 @@ struct gb_interface *gb_interface_create(struct greybus_host_device *hd,
u8 interface_id);
void gb_interface_destroy(struct gb_interface *intf);
int gb_interface_init(struct gb_interface *intf, u8 device_id);
-void gb_interface_remove(struct greybus_host_device *hd, u8 interface_id);
+void gb_interface_remove(struct gb_interface *intf);
void gb_interfaces_remove(struct greybus_host_device *hd);
int gb_create_bundle_connection(struct gb_interface *intf, u8 class);