summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-19 12:51:00 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-19 12:12:40 -0800
commit6d3d95042e6b3bede0199bad0d08f71b4f7735fb (patch)
treebdbc5ed6876ff4fa89134c118b0c927f122c7ac2 /drivers/staging/greybus/connection.c
parent5dda7e5a484295f24ecfcba6b64da6d37dccb912 (diff)
greybus: connection: rename legacy init and exit functions
Rename legacy connection init and exit functions. This is a step towards removing the legacy-protocol handling from core. Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 21e6eb52c437..d0e3f91d00d5 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -435,7 +435,7 @@ void gb_connection_disable(struct gb_connection *connection)
}
EXPORT_SYMBOL_GPL(gb_connection_disable);
-int gb_connection_init(struct gb_connection *connection)
+int gb_connection_legacy_init(struct gb_connection *connection)
{
int ret;
@@ -464,9 +464,9 @@ err_unbind_protocol:
return ret;
}
-EXPORT_SYMBOL_GPL(gb_connection_init);
+EXPORT_SYMBOL_GPL(gb_connection_legacy_init);
-void gb_connection_exit(struct gb_connection *connection)
+void gb_connection_legacy_exit(struct gb_connection *connection)
{
spin_lock_irq(&connection->lock);
if (connection->state != GB_CONNECTION_STATE_ENABLED) {
@@ -483,7 +483,7 @@ void gb_connection_exit(struct gb_connection *connection)
gb_connection_unbind_protocol(connection);
}
-EXPORT_SYMBOL_GPL(gb_connection_exit);
+EXPORT_SYMBOL_GPL(gb_connection_legacy_exit);
/*
* Tear down a previously set up connection.
@@ -495,7 +495,7 @@ void gb_connection_destroy(struct gb_connection *connection)
if (WARN_ON(!connection))
return;
- gb_connection_exit(connection);
+ gb_connection_legacy_exit(connection);
spin_lock_irq(&gb_connections_lock);
list_del(&connection->bundle_links);