WSL2-Linux-Kernel/drivers/uio
Pavel Machek e3a3c3a205 UIO: fix uio_pdrv_genirq with device tree but no interrupt
If device is initialized from device tree, but has no interrupt
assigned, uio will still try to request and interrupt old way,
fails, and fails registration.

This is wrong; don't try initializing irq using platform data if
device tree is available.

Simplified code based on suggestion by Grant Likely.

Fixed memory leak in "irq can not be registered" error path.

Signed-off-by: Pavel Machek <pavel@denx.de>
Reported-by: Detlev Zundel <dzu@denx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-06-18 15:44:59 -07:00
..
Kconfig uio: UIO_DMEM_GENIRQ should depend on HAS_DMA 2013-05-21 10:13:23 -07:00
Makefile Add new uio device for dynamic memory allocation 2012-10-24 15:39:08 -07:00
uio.c drivers: uio: Fix UIO device registration failure 2013-03-29 09:08:22 -07:00
uio_aec.c uio/uio_aec: Use module_pci_driver to register driver 2013-05-21 10:10:41 -07:00
uio_cif.c uio/uio_cif: Use module_pci_driver to register driver 2013-05-21 10:10:41 -07:00
uio_dmem_genirq.c drivers: uio: Only allocate new private data when probing device tree node 2012-11-21 13:44:10 -08:00
uio_netx.c uio/uio_netx: Use module_pci_driver to register driver 2013-05-21 10:10:41 -07:00
uio_pci_generic.c uio/uio_pci_generic: Use module_pci_driver to register driver 2013-05-21 13:59:25 -07:00
uio_pdrv.c uio_pdrv: set memory mapping name 2012-11-15 17:29:07 -08:00
uio_pdrv_genirq.c UIO: fix uio_pdrv_genirq with device tree but no interrupt 2013-06-18 15:44:59 -07:00
uio_pruss.c uio: uio_pruss: Fix potential NULL pointer dereference 2013-06-06 12:54:09 -07:00
uio_sercos3.c uio/uio_sercos3: Use module_pci_driver to register driver 2013-05-21 10:10:41 -07:00