projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'iio-fixes-for-5.19a' of https://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git]
/
drivers
/
iio
/
gyro
/
mpu3050-core.c
diff --git
a/drivers/iio/gyro/mpu3050-core.c
b/drivers/iio/gyro/mpu3050-core.c
index
4f19dc7
..
5908a96
100644
(file)
--- a/
drivers/iio/gyro/mpu3050-core.c
+++ b/
drivers/iio/gyro/mpu3050-core.c
@@
-875,6
+875,7
@@
static int mpu3050_power_up(struct mpu3050 *mpu3050)
ret = regmap_update_bits(mpu3050->map, MPU3050_PWR_MGM,
MPU3050_PWR_MGM_SLEEP, 0);
if (ret) {
+ regulator_bulk_disable(ARRAY_SIZE(mpu3050->regs), mpu3050->regs);
dev_err(mpu3050->dev, "error setting power mode\n");
return ret;
}