summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-11-03 12:11:26 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-11-04 20:20:23 -0800
commitfcfc762f17616e9c720214d85b88ed672e767499 (patch)
treea51d11ad0c422fcd455bb8f59d96aa53fc1454a9 /drivers/staging/greybus/connection.c
parent5245a90564b0c3f781e0c60cdbeb3b3b34c970df (diff)
downloadlinux-stable-fcfc762f17616e9c720214d85b88ed672e767499.tar.gz
linux-stable-fcfc762f17616e9c720214d85b88ed672e767499.tar.bz2
linux-stable-fcfc762f17616e9c720214d85b88ed672e767499.zip
greybus: connection: kill gb_hd_connections_exit
Connections are destroyed as part of interface tear down. If we fail to do that properly it's a bug that should be fixed rather than papered over by a fall-back clean up function. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 294e72e8e1c0..de774b988213 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -489,14 +489,6 @@ void gb_connection_latency_tag_disable(struct gb_connection *connection)
}
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;