From db81b76970a2e9f3ffa1ca66e7761f9f4b84efc6 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Fri, 5 Feb 2016 09:35:33 +0100 Subject: [PATCH] greybus: camera: Add missing return value Add missing return value assignement when changing unipro power mode to PWM-G1. Signed-off-by: Jacopo Mondi Reviewed-by: Gjorgji Rosikopulos Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index 90eef23bf654..3f31a2fd7e5e 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -296,7 +296,7 @@ set_unipro_slow_mode: goto done; } - gb_svc_intf_set_power_mode(svc, svc->ap_intf_id, + ret = gb_svc_intf_set_power_mode(svc, svc->ap_intf_id, GB_SVC_UNIPRO_HS_SERIES_A, GB_SVC_UNIPRO_SLOW_AUTO_MODE, 1, 2, @@ -307,7 +307,6 @@ set_unipro_slow_mode: gcam_err(gcam, "can't take AP link to PWM-G1 auto: %d\n", ret); - done: kfree(req); kfree(resp); -- 2.20.1