Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: gyro: mpu3050: Fix incorrect free_irq() variable

The handler for the IRQ part of this driver is mpu3050->trig but,
in the teardown free_irq() is called with handler mpu3050.

Use correct IRQ handler when calling free_irq().

Fixes: 3904b28efb2c7 ("iio: gyro: Add driver for the MPU-3050 gyroscope")
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>

authored by

Ethan Tidmore and committed by
Jonathan Cameron
edb11a1a 679c04c1

+1 -1
+1 -1
drivers/iio/gyro/mpu3050-core.c
··· 1269 1269 pm_runtime_disable(dev); 1270 1270 iio_triggered_buffer_cleanup(indio_dev); 1271 1271 if (mpu3050->irq) 1272 - free_irq(mpu3050->irq, mpu3050); 1272 + free_irq(mpu3050->irq, mpu3050->trig); 1273 1273 iio_device_unregister(indio_dev); 1274 1274 mpu3050_power_down(mpu3050); 1275 1275 }