[PATCH] iio: adc: Fix pm runtime clean-up in sun4i_gpadc_probe
Andy Shevchenko
andy.shevchenko at gmail.com
Wed Oct 8 09:57:47 PDT 2025
On Wed, Oct 8, 2025 at 7:52 PM Shuhao Fu <sfual at cse.ust.hk> wrote:
>
> In `sun4i_gpadc_probe`, in case of thermal register failure, the runtime
> PM usage counter would not be decreased, resulting in a possible
> inconsistency of runtime PM state.
>
> Fixes: b0a242894f11 ("iio: adc: sun4i-gpadc-iio: register in the thermal after registering in pm")
This might fix this problem, but it doesn't fix the whole mess in the
probe with devm/non-devm ordering.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list