Commit db81b769 authored by Jacopo Mondi's avatar Jacopo Mondi Committed by Greg Kroah-Hartman

greybus: camera: Add missing return value

Add missing return value assignement when changing unipro power mode to
PWM-G1.
Signed-off-by: default avatarJacopo Mondi <jacopo.mondi@linaro.org>
Reviewed-by: default avatarGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent f121d79d
......@@ -296,7 +296,7 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
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 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
gcam_err(gcam, "can't take AP link to PWM-G1 auto: %d\n",
ret);
done:
kfree(req);
kfree(resp);
......
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