[PATCH 5.16 120/164] iio: Fix error handling for PM