]> git.baikalelectronics.ru Git - kernel.git/commit
[media] saa7164: free_irq before pci_disable_device
authorOlli Salonen <olli.salonen@iki.fi>
Sat, 21 Feb 2015 21:45:26 +0000 (18:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 14:16:09 +0000 (11:16 -0300)
commitd868f3f0af2552593105ed45b3aedb030271c90c
tree51fc3bfef004e5682cf43a9b52f16a2c8bf443f1
parent21515eccc5fc592de08afb43ab81fffc552a57ca
[media] saa7164: free_irq before pci_disable_device

Free the IRQ before disabling the device. Otherwise errors like this when unloading the module:

[21135.458560] ------------[ cut here ]------------
[21135.458569] WARNING: CPU: 4 PID: 1696 at /home/apw/COD/linux/fs/proc/generic.c:521 remove_proc_entry+0x1a1/0x1b0()
[21135.458572] remove_proc_entry: removing non-empty directory 'irq/47', leaking at least 'saa7164[0]'

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Reviewed-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/saa7164/saa7164-core.c