Skip to content
Commit e3a3c3a2 authored by Pavel Machek's avatar Pavel Machek Committed by Greg Kroah-Hartman
Browse files

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: default avatarPavel Machek <pavel@denx.de>
Reported-by: default avatarDetlev Zundel <dzu@denx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05c3e0bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment