diff options
author | Pavel Machek <pavel@ucw.cz> | 2013-06-18 22:34:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-18 15:44:59 -0700 |
commit | e3a3c3a205554e564751cd9c0276b2af813d7a92 (patch) | |
tree | 34717caa0f8cc89d135ba8f1f319b120a37f69e2 /samples | |
parent | 05c3e0bb5629b897b0459e4bfb1b93d729033b99 (diff) | |
download | op-kernel-dev-e3a3c3a205554e564751cd9c0276b2af813d7a92.zip op-kernel-dev-e3a3c3a205554e564751cd9c0276b2af813d7a92.tar.gz |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions