iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up()
authorZheyu Ma <zheyuma97@gmail.com>
Tue, 10 May 2022 09:24:31 +0000 (17:24 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Jun 2022 16:22:48 +0000 (17:22 +0100)
commitb2f5ad97645e1deb5ca9bcb7090084b92cae35d2
tree0d479cf98946ee91683e3ce778302a6442cc7561
parent6f6bd7591945c679b7f595119ea997b19f5794db
iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up()

The driver should disable regulators when fails at regmap_update_bits().

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220510092431.1711284-1-zheyuma97@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/mpu3050-core.c