]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Sat, 2 Jul 2022 14:18:09 +0000 (16:18 +0200)
commit6003e8b23ea2b9c8ec54e390be638b9ff032bc2f
treea9371a0c6847fe4eb387b682d927f6bb01867da2
parent504152ac093a975daf1d77f884bcbb0a42c3d199
iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up()

commit b2f5ad97645e1deb5ca9bcb7090084b92cae35d2 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