mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
dmaengine: moxart: remove NO_IRQ
The use of NO_IRQ is incorrect here and should never have been there, as irq_of_parse_and_map() returns '0' on failure, not NO_IRQ. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
29b4817d40
commit
2d9e31b941
@ -579,7 +579,7 @@ static int moxart_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
|
||||
irq = irq_of_parse_and_map(node, 0);
|
||||
if (irq == NO_IRQ) {
|
||||
if (!irq) {
|
||||
dev_err(dev, "no IRQ resource\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user