}
EXPORT_SYMBOL_GPL(gb_connection_latency_tag_disable);
-void gb_hd_connections_exit(struct greybus_host_device *hd)
-{
- struct gb_connection *connection;
-
- list_for_each_entry(connection, &hd->connections, hd_links)
- gb_connection_destroy(connection);
-}
-
int gb_connection_bind_protocol(struct gb_connection *connection)
{
struct gb_protocol *protocol;
u16 cport_id, u8 protocol_id, u32 ida_start,
u32 ida_end);
void gb_connection_destroy(struct gb_connection *connection);
-void gb_hd_connections_exit(struct greybus_host_device *hd);
void greybus_data_rcvd(struct greybus_host_device *hd, u16 cport_id,
u8 *data, size_t length);
if (hd->initial_svc_connection)
gb_connection_destroy(hd->initial_svc_connection);
- /*
- * Make sure there are no leftovers that can potentially corrupt sysfs.
- */
- if (WARN_ON(!list_empty(&hd->connections)))
- gb_hd_connections_exit(hd);
-
kref_put_mutex(&hd->kref, free_hd, &hd_mutex);
}
EXPORT_SYMBOL_GPL(greybus_remove_hd);