summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-01-03 12:57:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-05 08:28:37 +0100
commite81f07eb19e573a4cdfbdb0d9588712c89a41e2c (patch)
treeb940a6bcc5b307c4148b45077c17cdb8d4d77cd5 /include
parentae829c0f35e6c3cf5e3d0dac38e63b6376204ac2 (diff)
downloadbarebox-e81f07eb19e573a4cdfbdb0d9588712c89a41e2c.tar.gz
barebox-e81f07eb19e573a4cdfbdb0d9588712c89a41e2c.tar.xz
regulator: fix broken reference counting on disable
Reference count is maintained correctly when enabling, but the very first disable will ignore the reference count and disable the regulator unconditionally. Make disable with an enable_count > 1 a no-op to fix this. Reported-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103115718.1723730-5-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions