]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commitd43eef530946783cb5537ee58bec892253b68648
treec732396ee56b95517d81642e5061842b4043a240
parenta4ca02454821cbc411e0bf16e527d392f188c218
parent8856eafcc05ecf54d6dd2b6c67804fefd276472c
Add more devm_ functions to fix PM imbalance in

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.
drivers/spi/atmel-quadspi.c