projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b950dc2
)
greybus: connection: Use connection->dev for printing messages
author
Viresh Kumar
<viresh.kumar@linaro.org>
Fri, 3 Jul 2015 11:30:27 +0000
(17:00 +0530)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Wed, 8 Jul 2015 18:40:53 +0000
(11:40 -0700)
We failed to bind a protocol for the connection, not for bundle. And so
connection's 'dev' must be used for printing message.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/connection.c
b/drivers/staging/greybus/connection.c
index 2e306d13ac2853a3a7e0672e0491b38187fb480d..6994a84439f832a8b38d103e82b9b20cf37167dc 100644
(file)
--- a/
drivers/staging/greybus/connection.c
+++ b/
drivers/staging/greybus/connection.c
@@
-209,7
+209,7
@@
struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
/* XXX Will have to establish connections to get version */
gb_connection_bind_protocol(connection);
if (!connection->protocol)
- dev_warn(&
bundle
->dev,
+ dev_warn(&
connection
->dev,
"protocol 0x%02hhx handler not found\n", protocol_id);
return connection;