Commit 3dca03de authored by Viresh Kumar's avatar Viresh Kumar Committed by Johan Hovold

greybus: connection: convert connected dev_warn() to dev_err()

Failures from control-connected operations are fatal errors and
must be reported with dev_err() instead of dev_warn().

Fix it.
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
[ johan: do not promote disconnected warnings, update summary ]
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
parent 63009689
......@@ -386,9 +386,9 @@ static int gb_connection_init(struct gb_connection *connection)
ret = gb_control_connected_operation(control, cport_id);
if (ret) {
dev_warn(&connection->dev,
"Failed to connect CPort-%d (%d)\n",
cport_id, ret);
dev_err(&connection->dev,
"Failed to connect CPort-%d (%d)\n",
cport_id, ret);
return 0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment