]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: arizona: Ensure 32k clock is put on driver unbind and error
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 15 Jun 2020 13:53:21 +0000 (14:53 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 18 Jun 2020 10:23:15 +0000 (11:23 +0100)
commitd0744256f071a92327d8e83382e83f3f6d1a3b0e
tree504652ffcd7cd08f5fa7cc83ed294f3debfc01bd
parent02ec05a936c7ee297fd3e9331f355b1fec5ea270
mfd: arizona: Ensure 32k clock is put on driver unbind and error

Whilst it doesn't matter if the internal 32k clock register settings
are cleaned up on exit, as the part will be turned off losing any
settings, hence the driver hasn't historially bothered. The external
clock should however be cleaned up, as it could cause clocks to be
left on, and will at best generate a warning on unbind.

Add clean up on both the probe error path and unbind for the 32k
clock.

Fixes: e08ea0d5fffc ("mfd: arizona: Add gating of external MCLKn clocks")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c