greybus: interface: declare gb_interface_destroy()
authorAlex Elder <elder@linaro.org>
Mon, 3 Aug 2015 17:57:09 +0000 (12:57 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 4 Aug 2015 03:11:48 +0000 (20:11 -0700)
Add a public declaration for gb_interface_destroy(), matching
gb_interface_create().

It's not yet used outside "interface.c" but I suppose it
could be, and its scope is currently public.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.h

index 558e6dbaa26b6a62a401c4d30ae0ae0dfe7d0580..e60a3705494ee6e5cf46084d6f80fd133f6dae4c 100644 (file)
@@ -51,6 +51,7 @@ struct gb_interface *gb_interface_find(struct greybus_host_device *hd,
 
 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_interfaces_remove(struct greybus_host_device *hd);