Commit 77ce71aa authored by Kunihiko Hayashi's avatar Kunihiko Hayashi Committed by Greg Kroah-Hartman
Browse files

i2c: designware: Add disabling clocks when probe fails



[ Upstream commit c149841b ]

After an error occurs during probing state, dw_i2c_plat_pm_cleanup() is
called. However, this function doesn't disable clocks and the clock-enable
count keeps increasing. Should disable these clocks explicitly.

Fixes: 7272194e ("i2c-designware: add minimal support for runtime PM")
Co-developed-by: default avatarKohei Ito <ito.kohei@socionext.com>
Signed-off-by: default avatarKohei Ito <ito.kohei@socionext.com>
Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 07f952d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment