[PATCH 5.15 102/139] iio: Fix error handling for PM