80ccf4ad06
img_ir_remove() passes a pointer to the ISR function as the 2nd
parameter to irq_free() instead of a pointer to the device data
structure.
This issue causes unloading img-ir module to fail with the below
warning after building and loading img-ir as a module.
WARNING: CPU: 2 PID: 155 at ../kernel/irq/manage.c:1278
__free_irq+0xb4/0x214() Trying to free already-free IRQ 58
Modules linked in: img_ir(-)
CPU: 2 PID: 155 Comm: rmmod Not tainted 3.14.0 #55 ...
Call Trace:
...
[<8048d420>] __free_irq+0xb4/0x214
[<8048d6b4>] free_irq+0xac/0xf4
[<c009b130>] img_ir_remove+0x54/0xd4 [img_ir] [<8073ded0>]
platform_drv_remove+0x30/0x54 ...
Fixes:
|
||
---|---|---|
.. | ||
img-ir-core.c | ||
img-ir-hw.c | ||
img-ir-hw.h | ||
img-ir-jvc.c | ||
img-ir-nec.c | ||
img-ir-raw.c | ||
img-ir-raw.h | ||
img-ir-rc5.c | ||
img-ir-rc6.c | ||
img-ir-sanyo.c | ||
img-ir-sharp.c | ||
img-ir-sony.c | ||
img-ir.h | ||
Kconfig | ||
Makefile |