mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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: 3904b28efb ("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>
This commit is contained in:
parent
679c04c10d
commit
edb11a1aef
|
|
@ -1269,7 +1269,7 @@ void mpu3050_common_remove(struct device *dev)
|
|||
pm_runtime_disable(dev);
|
||||
iio_triggered_buffer_cleanup(indio_dev);
|
||||
if (mpu3050->irq)
|
||||
free_irq(mpu3050->irq, mpu3050);
|
||||
free_irq(mpu3050->irq, mpu3050->trig);
|
||||
iio_device_unregister(indio_dev);
|
||||
mpu3050_power_down(mpu3050);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user