2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 23:23:55 +08:00

greybus: interface: fix svc-resource error messages

The interface svc-resource helper are used to enable as well as disable
the corresponding SVC resources so make sure the error messages reflect
that.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Johan Hovold 2016-05-25 22:18:14 +02:00 committed by Greg Kroah-Hartman
parent 7a9a5bf01e
commit ae36e81ed9

View File

@ -387,7 +387,7 @@ static int gb_interface_vsys_set(struct gb_interface *intf, bool enable)
ret = gb_svc_intf_vsys_set(svc, intf->interface_id, enable);
if (ret) {
dev_err(&intf->dev, "failed to enable v_sys: %d\n", ret);
dev_err(&intf->dev, "failed to set v_sys: %d\n", ret);
return ret;
}
@ -403,7 +403,7 @@ static int gb_interface_refclk_set(struct gb_interface *intf, bool enable)
ret = gb_svc_intf_refclk_set(svc, intf->interface_id, enable);
if (ret) {
dev_err(&intf->dev, "failed to enable refclk: %d\n", ret);
dev_err(&intf->dev, "failed to set refclk: %d\n", ret);
return ret;
}
@ -419,7 +419,7 @@ static int gb_interface_unipro_set(struct gb_interface *intf, bool enable)
ret = gb_svc_intf_unipro_set(svc, intf->interface_id, enable);
if (ret) {
dev_err(&intf->dev, "failed to enable UniPro: %d\n", ret);
dev_err(&intf->dev, "failed to set UniPro: %d\n", ret);
return ret;
}