summaryrefslogtreecommitdiff
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorDongliang Mu <mudongliangabcd@gmail.com>2022-04-22 10:54:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-09 10:30:15 +0200
commita739d3031046912aec668d04d87bf2095df734ce (patch)
tree667d4b0ad4adb4a0dbef395c96090d580ed17e43 /drivers/media/i2c
parent51e85ca301ca4586cf481ea0e0b961a40392f91c (diff)
downloadlinux-stable-a739d3031046912aec668d04d87bf2095df734ce.tar.gz
media: ov7670: remove ov7670_power_off from ov7670_remove
[ Upstream commit 5bf19572e31375368f19edd2dbb2e0789518bb99 ] In ov7670_probe, it always invokes ov7670_power_off() no matter the execution is successful or failed. So we cannot invoke it agiain in ov7670_remove(). Fix this by removing ov7670_power_off from ov7670_remove. Fixes: 030f9f682e66 ("media: ov7670: control clock along with power") Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/ov7670.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c
index 196746423116..1be2c0e5bdc1 100644
--- a/drivers/media/i2c/ov7670.c
+++ b/drivers/media/i2c/ov7670.c
@@ -2017,7 +2017,6 @@ static int ov7670_remove(struct i2c_client *client)
v4l2_async_unregister_subdev(sd);
v4l2_ctrl_handler_free(&info->hdl);
media_entity_cleanup(&info->sd.entity);
- ov7670_power_off(sd);
return 0;
}