Commit a244fabc authored by Niklas Söderlund's avatar Niklas Söderlund Committed by Mauro Carvalho Chehab

media: rcar-vin: Do not call pm_runtime_{resume,suspend}()

The driver does not implement runtime resume and suspend function so
there is little point in trying to call them. This is a leftover from
the drivers soc_camera beginnings.
Signed-off-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: default avatarUlrich Hecht <uli+renesas@fpond.eu>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent b2ce5617
...@@ -798,9 +798,6 @@ static int rvin_initialize_device(struct file *file) ...@@ -798,9 +798,6 @@ static int rvin_initialize_device(struct file *file)
return ret; return ret;
pm_runtime_enable(&vin->vdev.dev); pm_runtime_enable(&vin->vdev.dev);
ret = pm_runtime_resume(&vin->vdev.dev);
if (ret < 0 && ret != -ENOSYS)
goto eresume;
/* /*
* Try to configure with default parameters. Notice: this is the * Try to configure with default parameters. Notice: this is the
...@@ -817,7 +814,6 @@ static int rvin_initialize_device(struct file *file) ...@@ -817,7 +814,6 @@ static int rvin_initialize_device(struct file *file)
return 0; return 0;
esfmt: esfmt:
pm_runtime_disable(&vin->vdev.dev); pm_runtime_disable(&vin->vdev.dev);
eresume:
rvin_power_off(vin); rvin_power_off(vin);
return ret; return ret;
...@@ -868,7 +864,6 @@ static int rvin_release(struct file *file) ...@@ -868,7 +864,6 @@ static int rvin_release(struct file *file)
* Then de-initialize hw module. * Then de-initialize hw module.
*/ */
if (fh_singular) { if (fh_singular) {
pm_runtime_suspend(&vin->vdev.dev);
pm_runtime_disable(&vin->vdev.dev); pm_runtime_disable(&vin->vdev.dev);
rvin_power_off(vin); rvin_power_off(vin);
} }
......
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