diff --git a/drivers/spi/spi-ppc4xx.c b/drivers/spi/spi-ppc4xx.c index 6413bcd28..bfcfafda3 100755 --- a/drivers/spi/spi-ppc4xx.c +++ b/drivers/spi/spi-ppc4xx.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -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);