diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-09-23 16:48:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-09-24 15:25:03 -0700 |
commit | 80d1ede88ab081bd901bd5b3dc2461083915d1d1 (patch) | |
tree | 16d617fa2f64ab04979e853afb310f779dd255be /drivers/staging/greybus/interface.h | |
parent | 6bec5c78e59dd847c095f4a868baf14be871c8bb (diff) | |
download | op-kernel-dev-80d1ede88ab081bd901bd5b3dc2461083915d1d1.zip op-kernel-dev-80d1ede88ab081bd901bd5b3dc2461083915d1d1.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h index 38210ad..42b5d01 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); |