Revert "spi: ppc4xx: Avoid returning 0 when failed to parse and map IRQ"
This reverts commit 4660104f81
.
This commit is contained in:
parent
8d240a5244
commit
a7d23d19d9
1 changed files with 3 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <linux/errno.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/delay.h>
|
||||
|
@ -409,10 +410,9 @@ static int spi_ppc4xx_of_probe(struct platform_device *op)
|
|||
}
|
||||
|
||||
/* Request IRQ */
|
||||
ret = platform_get_irq(op, 0);
|
||||
if (ret < 0)
|
||||
hw->irqnum = irq_of_parse_and_map(np, 0);
|
||||
if (hw->irqnum <= 0)
|
||||
goto free_host;
|
||||
hw->irqnum = ret;
|
||||
|
||||
ret = request_irq(hw->irqnum, spi_ppc4xx_int,
|
||||
0, "spi_ppc4xx_of", (void *)hw);
|
||||
|
|
Loading…
Add table
Reference in a new issue