From: Mark Brown Date: Mon, 12 May 2025 02:28:54 +0000 (+0900) Subject: Add more devm_ functions to fix PM imbalance in X-Git-Tag: v6.16-rc1~166^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43eef530946783cb5537ee58bec892253b68648;p=thirdparty%2Fkernel%2Fstable.git Add more devm_ functions to fix PM imbalance in Merge series from Bence Csókás : 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. --- d43eef530946783cb5537ee58bec892253b68648