Skip to content

Commit

Permalink
[media] media: sh-mobile-ceu-camera: runtime PM suspending doesn't ha…
Browse files Browse the repository at this point in the history
…ve to be synchronous

In both error and clean up cases there is no need to wait for runtime PM
to finish suspending the device.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Dec 20, 2012
1 parent c9a8d89 commit 57f1b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static int sh_mobile_ceu_add_device(struct soc_camera_device *icd)

ret = v4l2_subdev_call(csi2_sd, core, s_power, 1);
if (ret < 0 && ret != -ENOIOCTLCMD && ret != -ENODEV) {
pm_runtime_put_sync(ici->v4l2_dev.dev);
pm_runtime_put(ici->v4l2_dev.dev);
return ret;
}

Expand Down Expand Up @@ -612,7 +612,7 @@ static void sh_mobile_ceu_remove_device(struct soc_camera_device *icd)
}
spin_unlock_irq(&pcdev->lock);

pm_runtime_put_sync(ici->v4l2_dev.dev);
pm_runtime_put(ici->v4l2_dev.dev);

dev_info(icd->parent,
"SuperH Mobile CEU driver detached from camera %d\n",
Expand Down

0 comments on commit 57f1b1c

Please sign in to comment.