]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Add more devm_ functions to fix PM imbalance in
authorMark Brown <broonie@kernel.org>
Mon, 12 May 2025 02:28:54 +0000 (11:28 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 12 May 2025 02:28:54 +0000 (11:28 +0900)
Merge series from Bence Csókás <csokas.bence@prolan.hu>:

The probe() function of the atmel-quadspi driver got quite convoluted,
especially since the addition of SAMA7G5 support, that was forward-ported
from an older vendor kernel. During the port, a bug was introduced, where
the PM get() and put() calls were imbalanced. To alleivate this - and
similar problems in the future - an effort was made to migrate as many
functions as possible, to their devm_ managed counterparts. The few
functions, which did not yet have a devm_ variant, are added in patch 1 of
this series. Patch 2 then uses these APIs to fix the probe() function.

1  2 
drivers/spi/atmel-quadspi.c

Simple merge