]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov7670: remove ov7670_power_off from ov7670_remove
authorDongliang Mu <mudongliangabcd@gmail.com>
Fri, 22 Apr 2022 08:54:05 +0000 (10:54 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:09:29 +0000 (09:09 +0200)
commitd379df9811b84e82c1dadf60c55ac538df85012b
tree053e729ded383bae50048ec1c912a21940933099
parent3ce082eede7c803241739e9399a746414582cb43
media: ov7670: remove ov7670_power_off from ov7670_remove

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: ff7ac6a013f1 ("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>
drivers/media/i2c/ov7670.c