[PATCH openEuler-5.10 50/73] iio: Fix error handling for PM