]> git.baikalelectronics.ru Git - kernel.git/commit
UIO: fix uio_pdrv_genirq with device tree but no interrupt
authorPavel Machek <pavel@ucw.cz>
Tue, 18 Jun 2013 20:34:53 +0000 (22:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2013 22:44:59 +0000 (15:44 -0700)
commit5bab40e09e11cbdac064b0cc879d695e6981f795
tree34717caa0f8cc89d135ba8f1f319b120a37f69e2
parentd90f2034da60bca69f0904df6068915eda4c8640
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>
drivers/uio/uio_pdrv_genirq.c