summaryrefslogtreecommitdiff
path: root/include/linux/processor.h
diff options
context:
space:
mode:
authorEthan Tidmore <ethantidmore06@gmail.com>2026-02-25 01:48:17 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-01 14:20:11 +0300
commit4c05799449108fb0e0a6bd30e65fffc71e60db4d (patch)
treec13e0de716d0adb210338e8e26b2a88084eff5d2 /include/linux/processor.h
parent4216db1043a3be72ef9c2b7b9f393d7fa72496e6 (diff)
downloadlinux-4c05799449108fb0e0a6bd30e65fffc71e60db4d.tar.xz
iio: gyro: mpu3050: Move iio_device_register() to correct location
iio_device_register() should be at the end of the probe function to prevent race conditions. Place iio_device_register() at the end of the probe function and place iio_device_unregister() accordingly. Fixes: 3904b28efb2c7 ("iio: gyro: Add driver for the MPU-3050 gyroscope") Suggested-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/processor.h')
0 files changed, 0 insertions, 0 deletions