media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors
stable inclusion from stable-v5.10.195 commit 3534ae5f171b89b4f318d99554da9013d07aa283 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I95JOC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3534ae5f171b89b4f318d99554da9013d07aa283 -------------------------------- [ Upstream commit 84b4bd7e ] When the ov2680_power_on() "sensor soft reset failed" path is hit during probe() the WARN() about putting an enabled regulator at drivers/regulator/core.c:2398 triggers 3 times (once for each regulator), filling dmesg with backtraces. Fix this by properly disabling the regulators on ov2680_power_on() errors. Fixes: 3ee47cad ("media: ov2680: Add Omnivision OV2680 sensor driver") Reviewed-by:Daniel Scally <dan.scally@ideasonboard.com> Acked-by:
Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by:
Hans de Goede <hdegoede@redhat.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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment