]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 07:03:28 +0000 (09:03 +0200)
commit07d3a608e63d24b1163be7cb3cbc44d1182ccc1c
tree6bebbeb3ace56530a20267d2d5ef76213b7f8b84
parenta51c3ee0b19aa0f33077cd0d9bd39cb969558d2f
iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up()

commit 01c89a55e6b2f70333ff68f0a76b1683ef0ef650 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/gyro/mpu3050-core.c