Commit 0c1f14a1 authored by Enrico Scholz's avatar Enrico Scholz

media:mx6s_capture: handle errors in sd.s_power()

parent d4cdfa06
......@@ -1197,7 +1197,12 @@ static int _mx6s_csi_open_init(struct mx6s_csi_dev *csi_dev)
request_bus_freq(BUS_FREQ_HIGH);
v4l2_subdev_call(sd, core, s_power, 1);
ret = v4l2_subdev_call(sd, core, s_power, 1);
if (ret < 0) {
v4l2_err(sd, "failed to power on device: %d\n", ret);
vb2_queue_release(&csi_dev->vb2_vidq);
goto out;
}
mx6s_csi_init(csi_dev);
......
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