diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-01-21 17:34:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-21 22:45:09 -0800 |
commit | e4c16f8b034047096187a9a9b49035ff5dbc8478 (patch) | |
tree | 7706d8ba63792b4e5745ca15071321227b353a69 /drivers/staging/greybus/legacy.c | |
parent | 59507e2612379356d93de0bd1d6e0f9a36dca0da (diff) |
greybus: connection: drop the legacy protocol-id parameter
The protocol-id parameter is only used by the legacy driver so remove
it from the generic interface and move it to the legacy driver until it
can be removed completely.
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/legacy.c')
-rw-r--r-- | drivers/staging/greybus/legacy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/greybus/legacy.c b/drivers/staging/greybus/legacy.c index 0f3dc8689fb4..c34764fc30b2 100644 --- a/drivers/staging/greybus/legacy.c +++ b/drivers/staging/greybus/legacy.c @@ -155,11 +155,12 @@ static int legacy_probe(struct gb_bundle *bundle, connection = gb_connection_create_dynamic(bundle->intf, bundle, - le16_to_cpu(cport_desc->id), - cport_desc->protocol_id); + le16_to_cpu(cport_desc->id)); if (!connection) goto err_connections_destroy; + connection->protocol_id = cport_desc->protocol_id; + data->connections[i] = connection; } |