diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/dwc/pci-dra7xx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 07c45ec07662..7c9ed6a6675c 100644 --- a/drivers/pci/dwc/pci-dra7xx.c +++ b/drivers/pci/dwc/pci-dra7xx.c | |||
@@ -410,13 +410,6 @@ static int __init dra7xx_pcie_probe(struct platform_device *pdev) | |||
410 | return -EINVAL; | 410 | return -EINVAL; |
411 | } | 411 | } |
412 | 412 | ||
413 | ret = devm_request_irq(dev, irq, dra7xx_pcie_irq_handler, | ||
414 | IRQF_SHARED, "dra7xx-pcie-main", dra7xx); | ||
415 | if (ret) { | ||
416 | dev_err(dev, "failed to request irq\n"); | ||
417 | return ret; | ||
418 | } | ||
419 | |||
420 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ti_conf"); | 413 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ti_conf"); |
421 | base = devm_ioremap_nocache(dev, res->start, resource_size(res)); | 414 | base = devm_ioremap_nocache(dev, res->start, resource_size(res)); |
422 | if (!base) | 415 | if (!base) |
@@ -478,6 +471,13 @@ static int __init dra7xx_pcie_probe(struct platform_device *pdev) | |||
478 | if (ret < 0) | 471 | if (ret < 0) |
479 | goto err_gpio; | 472 | goto err_gpio; |
480 | 473 | ||
474 | ret = devm_request_irq(dev, irq, dra7xx_pcie_irq_handler, | ||
475 | IRQF_SHARED, "dra7xx-pcie-main", dra7xx); | ||
476 | if (ret) { | ||
477 | dev_err(dev, "failed to request irq\n"); | ||
478 | goto err_gpio; | ||
479 | } | ||
480 | |||
481 | return 0; | 481 | return 0; |
482 | 482 | ||
483 | err_gpio: | 483 | err_gpio: |