aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/protocol.c
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan@hovoldconsulting.com> 2016-01-19 12:51:16 +0100
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2016-01-19 12:17:13 -0800
commit50dfb87865790bf8ef86a1c6898cde4e0df212fd (patch)
treedcc58670085cc25125e5cd1c8479fd2440afd8f5 /drivers/staging/greybus/protocol.c
parentgreybus: svc: drop legacy-protocol dependency (diff)
downloadlinux-50dfb87865790bf8ef86a1c6898cde4e0df212fd.tar.gz
linux-50dfb87865790bf8ef86a1c6898cde4e0df212fd.tar.bz2
linux-50dfb87865790bf8ef86a1c6898cde4e0df212fd.zip
greybus: connection: move legacy-protocol handling to legacy driver
Move legacy protocol and connection handling to the legacy driver. Rename the former global functions using a common legacy_ prefix. Note that all legacy protocols suffer from a connection initialisation race in that the protocol-specific initialisation, which includes allocation of protocol-specific state containers, can not happen until *after* the connection has been enabled. This is a major flaw in the original design that we can now finally address by converting the legacy protocol drivers into proper bundle (class) drivers. 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/protocol.c')
-rw-r--r--drivers/staging/greybus/protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/protocol.c b/drivers/staging/greybus/protocol.c
index d69f64801b4f..057ab6057ee6 100644
--- a/drivers/staging/greybus/protocol.c
+++ b/drivers/staging/greybus/protocol.c
@@ -141,6 +141,7 @@ struct gb_protocol *gb_protocol_get(u8 id, u8 major, u8 minor)
return protocol;
}
+EXPORT_SYMBOL_GPL(gb_protocol_get);
int gb_protocol_get_version(struct gb_connection *connection)
{
@@ -197,3 +198,4 @@ void gb_protocol_put(struct gb_protocol *protocol)
out:
spin_unlock_irq(&gb_protocols_lock);
}
+EXPORT_SYMBOL_GPL(gb_protocol_put);