]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers: iio: mpu3050: use dev_err_probe for regulator request
authorSvyatoslav Ryhel <clamor95@gmail.com>
Thu, 22 Jan 2026 15:34:25 +0000 (17:34 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:53:18 +0000 (20:53 +0000)
commitb010880b9936da14f8035585ab57577aa05be23a
treec80220d156179a370705c1966eac349f3159f4dd
parent6939484a425a87d3d8fd168f721d9cf8a0fa86dd
drivers: iio: mpu3050: use dev_err_probe for regulator request

Regulator requesting may result in deferred probing error which will
abort driver probing. To avoid this just use dev_err_probe which handles
deferred probing.

Fixes: 3904b28efb2c ("iio: gyro: Add driver for the MPU-3050 gyroscope")
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/mpu3050-core.c