diff options
| -rw-r--r-- | arch/powerpc/sysdev/fsl_ifc.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/arch/powerpc/sysdev/fsl_ifc.c b/arch/powerpc/sysdev/fsl_ifc.c index b31f19f61031..097cc9d2585b 100644 --- a/arch/powerpc/sysdev/fsl_ifc.c +++ b/arch/powerpc/sysdev/fsl_ifc.c | |||
| @@ -244,12 +244,6 @@ static int __devinit fsl_ifc_ctrl_probe(struct platform_device *dev) | |||
| 244 | /* get the nand machine irq */ | 244 | /* get the nand machine irq */ |
| 245 | fsl_ifc_ctrl_dev->nand_irq = | 245 | fsl_ifc_ctrl_dev->nand_irq = |
| 246 | irq_of_parse_and_map(dev->dev.of_node, 1); | 246 | irq_of_parse_and_map(dev->dev.of_node, 1); |
| 247 | if (fsl_ifc_ctrl_dev->nand_irq == NO_IRQ) { | ||
| 248 | dev_err(&dev->dev, "failed to get irq resource " | ||
| 249 | "for NAND Machine\n"); | ||
| 250 | ret = -ENODEV; | ||
| 251 | goto err; | ||
| 252 | } | ||
| 253 | 247 | ||
| 254 | fsl_ifc_ctrl_dev->dev = &dev->dev; | 248 | fsl_ifc_ctrl_dev->dev = &dev->dev; |
| 255 | 249 | ||
| @@ -267,12 +261,14 @@ static int __devinit fsl_ifc_ctrl_probe(struct platform_device *dev) | |||
| 267 | goto err_irq; | 261 | goto err_irq; |
| 268 | } | 262 | } |
| 269 | 263 | ||
| 270 | ret = request_irq(fsl_ifc_ctrl_dev->nand_irq, fsl_ifc_nand_irq, 0, | 264 | if (fsl_ifc_ctrl_dev->nand_irq) { |
| 271 | "fsl-ifc-nand", fsl_ifc_ctrl_dev); | 265 | ret = request_irq(fsl_ifc_ctrl_dev->nand_irq, fsl_ifc_nand_irq, |
| 272 | if (ret != 0) { | 266 | 0, "fsl-ifc-nand", fsl_ifc_ctrl_dev); |
| 273 | dev_err(&dev->dev, "failed to install irq (%d)\n", | 267 | if (ret != 0) { |
| 274 | fsl_ifc_ctrl_dev->nand_irq); | 268 | dev_err(&dev->dev, "failed to install irq (%d)\n", |
| 275 | goto err_nandirq; | 269 | fsl_ifc_ctrl_dev->nand_irq); |
| 270 | goto err_nandirq; | ||
| 271 | } | ||
| 276 | } | 272 | } |
| 277 | 273 | ||
| 278 | return 0; | 274 | return 0; |
