diff options
Diffstat (limited to 'drivers/spi')
36 files changed, 19 insertions, 80 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 6a7d7b553d95..fd8007ebb145 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c | |||
@@ -526,7 +526,6 @@ static int atmel_qspi_probe(struct platform_device *pdev) | |||
526 | /* Request the IRQ */ | 526 | /* Request the IRQ */ |
527 | irq = platform_get_irq(pdev, 0); | 527 | irq = platform_get_irq(pdev, 0); |
528 | if (irq < 0) { | 528 | if (irq < 0) { |
529 | dev_err(&pdev->dev, "missing IRQ\n"); | ||
530 | err = irq; | 529 | err = irq; |
531 | goto disable_qspick; | 530 | goto disable_qspick; |
532 | } | 531 | } |
diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c index 032888344822..119ae87cc26e 100644 --- a/drivers/spi/spi-armada-3700.c +++ b/drivers/spi/spi-armada-3700.c | |||
@@ -864,7 +864,6 @@ static int a3700_spi_probe(struct platform_device *pdev) | |||
864 | 864 | ||
865 | irq = platform_get_irq(pdev, 0); | 865 | irq = platform_get_irq(pdev, 0); |
866 | if (irq < 0) { | 866 | if (irq < 0) { |
867 | dev_err(dev, "could not get irq: %d\n", irq); | ||
868 | ret = -ENXIO; | 867 | ret = -ENXIO; |
869 | goto error; | 868 | goto error; |
870 | } | 869 | } |
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index 6f243a90c844..c96797844688 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c | |||
@@ -1015,7 +1015,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev) | |||
1015 | 1015 | ||
1016 | bs->irq = platform_get_irq(pdev, 0); | 1016 | bs->irq = platform_get_irq(pdev, 0); |
1017 | if (bs->irq <= 0) { | 1017 | if (bs->irq <= 0) { |
1018 | dev_err(&pdev->dev, "could not get IRQ: %d\n", bs->irq); | ||
1019 | err = bs->irq ? bs->irq : -ENODEV; | 1018 | err = bs->irq ? bs->irq : -ENODEV; |
1020 | goto out_controller_put; | 1019 | goto out_controller_put; |
1021 | } | 1020 | } |
diff --git a/drivers/spi/spi-bcm2835aux.c b/drivers/spi/spi-bcm2835aux.c index bb57035c5770..b18ce69c0375 100644 --- a/drivers/spi/spi-bcm2835aux.c +++ b/drivers/spi/spi-bcm2835aux.c | |||
@@ -540,7 +540,6 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev) | |||
540 | 540 | ||
541 | bs->irq = platform_get_irq(pdev, 0); | 541 | bs->irq = platform_get_irq(pdev, 0); |
542 | if (bs->irq <= 0) { | 542 | if (bs->irq <= 0) { |
543 | dev_err(&pdev->dev, "could not get IRQ: %d\n", bs->irq); | ||
544 | err = bs->irq ? bs->irq : -ENODEV; | 543 | err = bs->irq ? bs->irq : -ENODEV; |
545 | goto out_master_put; | 544 | goto out_master_put; |
546 | } | 545 | } |
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 9a06ffdb73b8..373cb53579e0 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c | |||
@@ -338,10 +338,8 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) | |||
338 | u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS; | 338 | u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS; |
339 | 339 | ||
340 | irq = platform_get_irq(pdev, 0); | 340 | irq = platform_get_irq(pdev, 0); |
341 | if (irq < 0) { | 341 | if (irq < 0) |
342 | dev_err(dev, "no irq: %d\n", irq); | ||
343 | return irq; | 342 | return irq; |
344 | } | ||
345 | 343 | ||
346 | res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 344 | res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
347 | regs = devm_ioremap_resource(dev, res_mem); | 345 | regs = devm_ioremap_resource(dev, res_mem); |
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index df1c94a131e6..fdd7eaa0b8ed 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -520,10 +520,8 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) | |||
520 | } | 520 | } |
521 | 521 | ||
522 | irq = platform_get_irq(pdev, 0); | 522 | irq = platform_get_irq(pdev, 0); |
523 | if (irq < 0) { | 523 | if (irq < 0) |
524 | dev_err(dev, "no irq: %d\n", irq); | ||
525 | return irq; | 524 | return irq; |
526 | } | ||
527 | 525 | ||
528 | clk = devm_clk_get(dev, "spi"); | 526 | clk = devm_clk_get(dev, "spi"); |
529 | if (IS_ERR(clk)) { | 527 | if (IS_ERR(clk)) { |
diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index 7c41e4e82849..1c35eaaac838 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c | |||
@@ -540,7 +540,6 @@ static int cdns_spi_probe(struct platform_device *pdev) | |||
540 | irq = platform_get_irq(pdev, 0); | 540 | irq = platform_get_irq(pdev, 0); |
541 | if (irq <= 0) { | 541 | if (irq <= 0) { |
542 | ret = -ENXIO; | 542 | ret = -ENXIO; |
543 | dev_err(&pdev->dev, "irq number is invalid\n"); | ||
544 | goto clk_dis_all; | 543 | goto clk_dis_all; |
545 | } | 544 | } |
546 | 545 | ||
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index 4fa7e7a52ebd..edb3cf6be201 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c | |||
@@ -156,10 +156,8 @@ static int dw_spi_mmio_probe(struct platform_device *pdev) | |||
156 | } | 156 | } |
157 | 157 | ||
158 | dws->irq = platform_get_irq(pdev, 0); | 158 | dws->irq = platform_get_irq(pdev, 0); |
159 | if (dws->irq < 0) { | 159 | if (dws->irq < 0) |
160 | dev_err(&pdev->dev, "no irq resource?\n"); | ||
161 | return dws->irq; /* -ENXIO */ | 160 | return dws->irq; /* -ENXIO */ |
162 | } | ||
163 | 161 | ||
164 | dwsmmio->clk = devm_clk_get(&pdev->dev, NULL); | 162 | dwsmmio->clk = devm_clk_get(&pdev->dev, NULL); |
165 | if (IS_ERR(dwsmmio->clk)) | 163 | if (IS_ERR(dwsmmio->clk)) |
diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c index eb1f2142a335..64d4c441b641 100644 --- a/drivers/spi/spi-efm32.c +++ b/drivers/spi/spi-efm32.c | |||
@@ -400,10 +400,8 @@ static int efm32_spi_probe(struct platform_device *pdev) | |||
400 | } | 400 | } |
401 | 401 | ||
402 | ret = platform_get_irq(pdev, 0); | 402 | ret = platform_get_irq(pdev, 0); |
403 | if (ret <= 0) { | 403 | if (ret <= 0) |
404 | dev_err(&pdev->dev, "failed to get rx irq (%d)\n", ret); | ||
405 | goto err; | 404 | goto err; |
406 | } | ||
407 | 405 | ||
408 | ddata->rxirq = ret; | 406 | ddata->rxirq = ret; |
409 | 407 | ||
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c index 4034e3ec0ba2..4e1ccd4e52b6 100644 --- a/drivers/spi/spi-ep93xx.c +++ b/drivers/spi/spi-ep93xx.c | |||
@@ -656,10 +656,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev) | |||
656 | } | 656 | } |
657 | 657 | ||
658 | irq = platform_get_irq(pdev, 0); | 658 | irq = platform_get_irq(pdev, 0); |
659 | if (irq < 0) { | 659 | if (irq < 0) |
660 | dev_err(&pdev->dev, "failed to get irq resources\n"); | ||
661 | return -EBUSY; | 660 | return -EBUSY; |
662 | } | ||
663 | 661 | ||
664 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 662 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
665 | if (!res) { | 663 | if (!res) { |
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 53335ccc98f6..96eacbe6ae27 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c | |||
@@ -1105,7 +1105,6 @@ static int dspi_probe(struct platform_device *pdev) | |||
1105 | dspi_init(dspi); | 1105 | dspi_init(dspi); |
1106 | dspi->irq = platform_get_irq(pdev, 0); | 1106 | dspi->irq = platform_get_irq(pdev, 0); |
1107 | if (dspi->irq < 0) { | 1107 | if (dspi->irq < 0) { |
1108 | dev_err(&pdev->dev, "can't get platform irq\n"); | ||
1109 | ret = dspi->irq; | 1108 | ret = dspi->irq; |
1110 | goto out_clk_put; | 1109 | goto out_clk_put; |
1111 | } | 1110 | } |
diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c index 41a49b93ca60..443d4c1196c2 100644 --- a/drivers/spi/spi-fsl-qspi.c +++ b/drivers/spi/spi-fsl-qspi.c | |||
@@ -860,10 +860,8 @@ static int fsl_qspi_probe(struct platform_device *pdev) | |||
860 | 860 | ||
861 | /* find the irq */ | 861 | /* find the irq */ |
862 | ret = platform_get_irq(pdev, 0); | 862 | ret = platform_get_irq(pdev, 0); |
863 | if (ret < 0) { | 863 | if (ret < 0) |
864 | dev_err(dev, "failed to get the irq: %d\n", ret); | ||
865 | goto err_disable_clk; | 864 | goto err_disable_clk; |
866 | } | ||
867 | 865 | ||
868 | ret = devm_request_irq(dev, ret, | 866 | ret = devm_request_irq(dev, ret, |
869 | fsl_qspi_irq_handler, 0, pdev->name, q); | 867 | fsl_qspi_irq_handler, 0, pdev->name, q); |
diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 5f0b0d5bfef4..242b6c86cf12 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c | |||
@@ -539,10 +539,8 @@ static int spi_geni_probe(struct platform_device *pdev) | |||
539 | struct clk *clk; | 539 | struct clk *clk; |
540 | 540 | ||
541 | irq = platform_get_irq(pdev, 0); | 541 | irq = platform_get_irq(pdev, 0); |
542 | if (irq < 0) { | 542 | if (irq < 0) |
543 | dev_err(&pdev->dev, "Err getting IRQ %d\n", irq); | ||
544 | return irq; | 543 | return irq; |
545 | } | ||
546 | 544 | ||
547 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 545 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
548 | base = devm_ioremap_resource(&pdev->dev, res); | 546 | base = devm_ioremap_resource(&pdev->dev, res); |
diff --git a/drivers/spi/spi-lantiq-ssc.c b/drivers/spi/spi-lantiq-ssc.c index 8f01858c0ae6..9dfe8b04e688 100644 --- a/drivers/spi/spi-lantiq-ssc.c +++ b/drivers/spi/spi-lantiq-ssc.c | |||
@@ -819,22 +819,16 @@ static int lantiq_ssc_probe(struct platform_device *pdev) | |||
819 | } | 819 | } |
820 | 820 | ||
821 | rx_irq = platform_get_irq_byname(pdev, LTQ_SPI_RX_IRQ_NAME); | 821 | rx_irq = platform_get_irq_byname(pdev, LTQ_SPI_RX_IRQ_NAME); |
822 | if (rx_irq < 0) { | 822 | if (rx_irq < 0) |
823 | dev_err(dev, "failed to get %s\n", LTQ_SPI_RX_IRQ_NAME); | ||
824 | return -ENXIO; | 823 | return -ENXIO; |
825 | } | ||
826 | 824 | ||
827 | tx_irq = platform_get_irq_byname(pdev, LTQ_SPI_TX_IRQ_NAME); | 825 | tx_irq = platform_get_irq_byname(pdev, LTQ_SPI_TX_IRQ_NAME); |
828 | if (tx_irq < 0) { | 826 | if (tx_irq < 0) |
829 | dev_err(dev, "failed to get %s\n", LTQ_SPI_TX_IRQ_NAME); | ||
830 | return -ENXIO; | 827 | return -ENXIO; |
831 | } | ||
832 | 828 | ||
833 | err_irq = platform_get_irq_byname(pdev, LTQ_SPI_ERR_IRQ_NAME); | 829 | err_irq = platform_get_irq_byname(pdev, LTQ_SPI_ERR_IRQ_NAME); |
834 | if (err_irq < 0) { | 830 | if (err_irq < 0) |
835 | dev_err(dev, "failed to get %s\n", LTQ_SPI_ERR_IRQ_NAME); | ||
836 | return -ENXIO; | 831 | return -ENXIO; |
837 | } | ||
838 | 832 | ||
839 | master = spi_alloc_master(dev, sizeof(struct lantiq_ssc_spi)); | 833 | master = spi_alloc_master(dev, sizeof(struct lantiq_ssc_spi)); |
840 | if (!master) | 834 | if (!master) |
diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 45d8a7048b6c..1f5f716016a2 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c | |||
@@ -664,7 +664,6 @@ static int mtk_spi_probe(struct platform_device *pdev) | |||
664 | 664 | ||
665 | irq = platform_get_irq(pdev, 0); | 665 | irq = platform_get_irq(pdev, 0); |
666 | if (irq < 0) { | 666 | if (irq < 0) { |
667 | dev_err(&pdev->dev, "failed to get irq (%d)\n", irq); | ||
668 | ret = irq; | 667 | ret = irq; |
669 | goto err_put_master; | 668 | goto err_put_master; |
670 | } | 669 | } |
diff --git a/drivers/spi/spi-npcm-pspi.c b/drivers/spi/spi-npcm-pspi.c index 734a2b956959..5c56caea04f0 100644 --- a/drivers/spi/spi-npcm-pspi.c +++ b/drivers/spi/spi-npcm-pspi.c | |||
@@ -388,7 +388,6 @@ static int npcm_pspi_probe(struct platform_device *pdev) | |||
388 | 388 | ||
389 | irq = platform_get_irq(pdev, 0); | 389 | irq = platform_get_irq(pdev, 0); |
390 | if (irq < 0) { | 390 | if (irq < 0) { |
391 | dev_err(&pdev->dev, "failed to get IRQ\n"); | ||
392 | ret = irq; | 391 | ret = irq; |
393 | goto out_disable_clk; | 392 | goto out_disable_clk; |
394 | } | 393 | } |
diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index 37e2034ad4d5..f65a029e3fe9 100644 --- a/drivers/spi/spi-nuc900.c +++ b/drivers/spi/spi-nuc900.c | |||
@@ -367,7 +367,6 @@ static int nuc900_spi_probe(struct platform_device *pdev) | |||
367 | 367 | ||
368 | hw->irq = platform_get_irq(pdev, 0); | 368 | hw->irq = platform_get_irq(pdev, 0); |
369 | if (hw->irq < 0) { | 369 | if (hw->irq < 0) { |
370 | dev_err(&pdev->dev, "No IRQ specified\n"); | ||
371 | err = -ENOENT; | 370 | err = -ENOENT; |
372 | goto err_pdata; | 371 | goto err_pdata; |
373 | } | 372 | } |
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index 8894f98cc99c..501b923f2c27 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c | |||
@@ -1007,10 +1007,8 @@ static int nxp_fspi_probe(struct platform_device *pdev) | |||
1007 | 1007 | ||
1008 | /* find the irq */ | 1008 | /* find the irq */ |
1009 | ret = platform_get_irq(pdev, 0); | 1009 | ret = platform_get_irq(pdev, 0); |
1010 | if (ret < 0) { | 1010 | if (ret < 0) |
1011 | dev_err(dev, "failed to get the irq: %d\n", ret); | ||
1012 | goto err_disable_clk; | 1011 | goto err_disable_clk; |
1013 | } | ||
1014 | 1012 | ||
1015 | ret = devm_request_irq(dev, ret, | 1013 | ret = devm_request_irq(dev, ret, |
1016 | nxp_fspi_irq_handler, 0, pdev->name, f); | 1014 | nxp_fspi_irq_handler, 0, pdev->name, f); |
diff --git a/drivers/spi/spi-pic32-sqi.c b/drivers/spi/spi-pic32-sqi.c index b635526ad414..11b692923fd7 100644 --- a/drivers/spi/spi-pic32-sqi.c +++ b/drivers/spi/spi-pic32-sqi.c | |||
@@ -590,7 +590,6 @@ static int pic32_sqi_probe(struct platform_device *pdev) | |||
590 | /* irq */ | 590 | /* irq */ |
591 | sqi->irq = platform_get_irq(pdev, 0); | 591 | sqi->irq = platform_get_irq(pdev, 0); |
592 | if (sqi->irq < 0) { | 592 | if (sqi->irq < 0) { |
593 | dev_err(&pdev->dev, "no irq found\n"); | ||
594 | ret = sqi->irq; | 593 | ret = sqi->irq; |
595 | goto err_free_master; | 594 | goto err_free_master; |
596 | } | 595 | } |
diff --git a/drivers/spi/spi-pic32.c b/drivers/spi/spi-pic32.c index 10cebeaa1e6b..69f517ec59c6 100644 --- a/drivers/spi/spi-pic32.c +++ b/drivers/spi/spi-pic32.c | |||
@@ -711,22 +711,16 @@ static int pic32_spi_hw_probe(struct platform_device *pdev, | |||
711 | 711 | ||
712 | /* get irq resources: err-irq, rx-irq, tx-irq */ | 712 | /* get irq resources: err-irq, rx-irq, tx-irq */ |
713 | pic32s->fault_irq = platform_get_irq_byname(pdev, "fault"); | 713 | pic32s->fault_irq = platform_get_irq_byname(pdev, "fault"); |
714 | if (pic32s->fault_irq < 0) { | 714 | if (pic32s->fault_irq < 0) |
715 | dev_err(&pdev->dev, "fault-irq not found\n"); | ||
716 | return pic32s->fault_irq; | 715 | return pic32s->fault_irq; |
717 | } | ||
718 | 716 | ||
719 | pic32s->rx_irq = platform_get_irq_byname(pdev, "rx"); | 717 | pic32s->rx_irq = platform_get_irq_byname(pdev, "rx"); |
720 | if (pic32s->rx_irq < 0) { | 718 | if (pic32s->rx_irq < 0) |
721 | dev_err(&pdev->dev, "rx-irq not found\n"); | ||
722 | return pic32s->rx_irq; | 719 | return pic32s->rx_irq; |
723 | } | ||
724 | 720 | ||
725 | pic32s->tx_irq = platform_get_irq_byname(pdev, "tx"); | 721 | pic32s->tx_irq = platform_get_irq_byname(pdev, "tx"); |
726 | if (pic32s->tx_irq < 0) { | 722 | if (pic32s->tx_irq < 0) |
727 | dev_err(&pdev->dev, "tx-irq not found\n"); | ||
728 | return pic32s->tx_irq; | 723 | return pic32s->tx_irq; |
729 | } | ||
730 | 724 | ||
731 | /* get clock */ | 725 | /* get clock */ |
732 | pic32s->clk = devm_clk_get(&pdev->dev, "mck0"); | 726 | pic32s->clk = devm_clk_get(&pdev->dev, "mck0"); |
diff --git a/drivers/spi/spi-qcom-qspi.c b/drivers/spi/spi-qcom-qspi.c index e0f061139c8f..a0ad73f1cc01 100644 --- a/drivers/spi/spi-qcom-qspi.c +++ b/drivers/spi/spi-qcom-qspi.c | |||
@@ -454,10 +454,8 @@ static int qcom_qspi_probe(struct platform_device *pdev) | |||
454 | goto exit_probe_master_put; | 454 | goto exit_probe_master_put; |
455 | 455 | ||
456 | ret = platform_get_irq(pdev, 0); | 456 | ret = platform_get_irq(pdev, 0); |
457 | if (ret < 0) { | 457 | if (ret < 0) |
458 | dev_err(dev, "Failed to get irq %d\n", ret); | ||
459 | goto exit_probe_master_put; | 458 | goto exit_probe_master_put; |
460 | } | ||
461 | ret = devm_request_irq(dev, ret, qcom_qspi_irq, | 459 | ret = devm_request_irq(dev, ret, qcom_qspi_irq, |
462 | IRQF_TRIGGER_HIGH, dev_name(dev), ctrl); | 460 | IRQF_TRIGGER_HIGH, dev_name(dev), ctrl); |
463 | if (ret) { | 461 | if (ret) { |
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index 48d8dff05a3a..aea8fd98a31f 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c | |||
@@ -545,7 +545,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev) | |||
545 | 545 | ||
546 | hw->irq = platform_get_irq(pdev, 0); | 546 | hw->irq = platform_get_irq(pdev, 0); |
547 | if (hw->irq < 0) { | 547 | if (hw->irq < 0) { |
548 | dev_err(&pdev->dev, "No IRQ specified\n"); | ||
549 | err = -ENOENT; | 548 | err = -ENOENT; |
550 | goto err_no_pdata; | 549 | goto err_no_pdata; |
551 | } | 550 | } |
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index b50bdbc27e58..f73f811c9ba7 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c | |||
@@ -1346,7 +1346,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) | |||
1346 | 1346 | ||
1347 | i = platform_get_irq(pdev, 0); | 1347 | i = platform_get_irq(pdev, 0); |
1348 | if (i < 0) { | 1348 | if (i < 0) { |
1349 | dev_err(&pdev->dev, "cannot get IRQ\n"); | ||
1350 | ret = i; | 1349 | ret = i; |
1351 | goto err1; | 1350 | goto err1; |
1352 | } | 1351 | } |
diff --git a/drivers/spi/spi-sh.c b/drivers/spi/spi-sh.c index f1ee58208216..20bdae5fdf3b 100644 --- a/drivers/spi/spi-sh.c +++ b/drivers/spi/spi-sh.c | |||
@@ -437,10 +437,8 @@ static int spi_sh_probe(struct platform_device *pdev) | |||
437 | } | 437 | } |
438 | 438 | ||
439 | irq = platform_get_irq(pdev, 0); | 439 | irq = platform_get_irq(pdev, 0); |
440 | if (irq < 0) { | 440 | if (irq < 0) |
441 | dev_err(&pdev->dev, "platform_get_irq error: %d\n", irq); | ||
442 | return irq; | 441 | return irq; |
443 | } | ||
444 | 442 | ||
445 | master = spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data)); | 443 | master = spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data)); |
446 | if (master == NULL) { | 444 | if (master == NULL) { |
diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index 93ec2c6cdbfd..5bf2b57e6929 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c | |||
@@ -323,7 +323,6 @@ static int sifive_spi_probe(struct platform_device *pdev) | |||
323 | 323 | ||
324 | irq = platform_get_irq(pdev, 0); | 324 | irq = platform_get_irq(pdev, 0); |
325 | if (irq < 0) { | 325 | if (irq < 0) { |
326 | dev_err(&pdev->dev, "Unable to find interrupt\n"); | ||
327 | ret = irq; | 326 | ret = irq; |
328 | goto put_master; | 327 | goto put_master; |
329 | } | 328 | } |
diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index d1075433f6a6..61bc43b0fe57 100644 --- a/drivers/spi/spi-slave-mt27xx.c +++ b/drivers/spi/spi-slave-mt27xx.c | |||
@@ -410,7 +410,6 @@ static int mtk_spi_slave_probe(struct platform_device *pdev) | |||
410 | 410 | ||
411 | irq = platform_get_irq(pdev, 0); | 411 | irq = platform_get_irq(pdev, 0); |
412 | if (irq < 0) { | 412 | if (irq < 0) { |
413 | dev_err(&pdev->dev, "failed to get irq (%d)\n", irq); | ||
414 | ret = irq; | 413 | ret = irq; |
415 | goto err_put_ctlr; | 414 | goto err_put_ctlr; |
416 | } | 415 | } |
diff --git a/drivers/spi/spi-sprd.c b/drivers/spi/spi-sprd.c index 1b7eebb72c07..8c9021b7f7a9 100644 --- a/drivers/spi/spi-sprd.c +++ b/drivers/spi/spi-sprd.c | |||
@@ -843,10 +843,8 @@ static int sprd_spi_irq_init(struct platform_device *pdev, struct sprd_spi *ss) | |||
843 | int ret; | 843 | int ret; |
844 | 844 | ||
845 | ss->irq = platform_get_irq(pdev, 0); | 845 | ss->irq = platform_get_irq(pdev, 0); |
846 | if (ss->irq < 0) { | 846 | if (ss->irq < 0) |
847 | dev_err(&pdev->dev, "failed to get irq resource\n"); | ||
848 | return ss->irq; | 847 | return ss->irq; |
849 | } | ||
850 | 848 | ||
851 | ret = devm_request_irq(&pdev->dev, ss->irq, sprd_spi_handle_irq, | 849 | ret = devm_request_irq(&pdev->dev, ss->irq, sprd_spi_handle_irq, |
852 | 0, pdev->name, ss); | 850 | 0, pdev->name, ss); |
diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index 655e4afbfb2a..9ac6f9fe13cf 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c | |||
@@ -570,11 +570,8 @@ static int stm32_qspi_probe(struct platform_device *pdev) | |||
570 | } | 570 | } |
571 | 571 | ||
572 | irq = platform_get_irq(pdev, 0); | 572 | irq = platform_get_irq(pdev, 0); |
573 | if (irq < 0) { | 573 | if (irq < 0) |
574 | if (irq != -EPROBE_DEFER) | ||
575 | dev_err(dev, "IRQ error missing or invalid\n"); | ||
576 | return irq; | 574 | return irq; |
577 | } | ||
578 | 575 | ||
579 | ret = devm_request_irq(dev, irq, stm32_qspi_irq, 0, | 576 | ret = devm_request_irq(dev, irq, stm32_qspi_irq, 0, |
580 | dev_name(dev), qspi); | 577 | dev_name(dev), qspi); |
diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index 5194bc07fd60..92e5c667b6a1 100644 --- a/drivers/spi/spi-sun4i.c +++ b/drivers/spi/spi-sun4i.c | |||
@@ -449,7 +449,6 @@ static int sun4i_spi_probe(struct platform_device *pdev) | |||
449 | 449 | ||
450 | irq = platform_get_irq(pdev, 0); | 450 | irq = platform_get_irq(pdev, 0); |
451 | if (irq < 0) { | 451 | if (irq < 0) { |
452 | dev_err(&pdev->dev, "No spi IRQ specified\n"); | ||
453 | ret = -ENXIO; | 452 | ret = -ENXIO; |
454 | goto err_free_master; | 453 | goto err_free_master; |
455 | } | 454 | } |
diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c index ee2bdaf5b856..1cf3051bba5e 100644 --- a/drivers/spi/spi-sun6i.c +++ b/drivers/spi/spi-sun6i.c | |||
@@ -456,7 +456,6 @@ static int sun6i_spi_probe(struct platform_device *pdev) | |||
456 | 456 | ||
457 | irq = platform_get_irq(pdev, 0); | 457 | irq = platform_get_irq(pdev, 0); |
458 | if (irq < 0) { | 458 | if (irq < 0) { |
459 | dev_err(&pdev->dev, "No spi IRQ specified\n"); | ||
460 | ret = -ENXIO; | 459 | ret = -ENXIO; |
461 | goto err_free_master; | 460 | goto err_free_master; |
462 | } | 461 | } |
diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index f99abd85c50a..ae17c99cce03 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c | |||
@@ -670,7 +670,6 @@ static int synquacer_spi_probe(struct platform_device *pdev) | |||
670 | 670 | ||
671 | rx_irq = platform_get_irq(pdev, 0); | 671 | rx_irq = platform_get_irq(pdev, 0); |
672 | if (rx_irq <= 0) { | 672 | if (rx_irq <= 0) { |
673 | dev_err(&pdev->dev, "get rx_irq failed (%d)\n", rx_irq); | ||
674 | ret = rx_irq; | 673 | ret = rx_irq; |
675 | goto put_spi; | 674 | goto put_spi; |
676 | } | 675 | } |
@@ -685,7 +684,6 @@ static int synquacer_spi_probe(struct platform_device *pdev) | |||
685 | 684 | ||
686 | tx_irq = platform_get_irq(pdev, 1); | 685 | tx_irq = platform_get_irq(pdev, 1); |
687 | if (tx_irq <= 0) { | 686 | if (tx_irq <= 0) { |
688 | dev_err(&pdev->dev, "get tx_irq failed (%d)\n", tx_irq); | ||
689 | ret = tx_irq; | 687 | ret = tx_irq; |
690 | goto put_spi; | 688 | goto put_spi; |
691 | } | 689 | } |
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 6ca600702470..3cb65371ae3b 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c | |||
@@ -717,7 +717,6 @@ static int ti_qspi_probe(struct platform_device *pdev) | |||
717 | 717 | ||
718 | irq = platform_get_irq(pdev, 0); | 718 | irq = platform_get_irq(pdev, 0); |
719 | if (irq < 0) { | 719 | if (irq < 0) { |
720 | dev_err(&pdev->dev, "no irq resource?\n"); | ||
721 | ret = irq; | 720 | ret = irq; |
722 | goto free_master; | 721 | goto free_master; |
723 | } | 722 | } |
diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index b32c77df5d49..c1e6f3245557 100644 --- a/drivers/spi/spi-uniphier.c +++ b/drivers/spi/spi-uniphier.c | |||
@@ -454,7 +454,6 @@ static int uniphier_spi_probe(struct platform_device *pdev) | |||
454 | 454 | ||
455 | irq = platform_get_irq(pdev, 0); | 455 | irq = platform_get_irq(pdev, 0); |
456 | if (irq < 0) { | 456 | if (irq < 0) { |
457 | dev_err(&pdev->dev, "failed to get IRQ\n"); | ||
458 | ret = irq; | 457 | ret = irq; |
459 | goto out_disable_clk; | 458 | goto out_disable_clk; |
460 | } | 459 | } |
diff --git a/drivers/spi/spi-xlp.c b/drivers/spi/spi-xlp.c index 1dc479fab98c..4eb5bc9250fc 100644 --- a/drivers/spi/spi-xlp.c +++ b/drivers/spi/spi-xlp.c | |||
@@ -384,10 +384,8 @@ static int xlp_spi_probe(struct platform_device *pdev) | |||
384 | return PTR_ERR(xspi->base); | 384 | return PTR_ERR(xspi->base); |
385 | 385 | ||
386 | irq = platform_get_irq(pdev, 0); | 386 | irq = platform_get_irq(pdev, 0); |
387 | if (irq < 0) { | 387 | if (irq < 0) |
388 | dev_err(&pdev->dev, "no IRQ resource found: %d\n", irq); | ||
389 | return irq; | 388 | return irq; |
390 | } | ||
391 | err = devm_request_irq(&pdev->dev, irq, xlp_spi_interrupt, 0, | 389 | err = devm_request_irq(&pdev->dev, irq, xlp_spi_interrupt, 0, |
392 | pdev->name, xspi); | 390 | pdev->name, xspi); |
393 | if (err) { | 391 | if (err) { |
diff --git a/drivers/spi/spi-zynq-qspi.c b/drivers/spi/spi-zynq-qspi.c index c6bee67decb5..3155e2cabb1e 100644 --- a/drivers/spi/spi-zynq-qspi.c +++ b/drivers/spi/spi-zynq-qspi.c | |||
@@ -671,7 +671,6 @@ static int zynq_qspi_probe(struct platform_device *pdev) | |||
671 | xqspi->irq = platform_get_irq(pdev, 0); | 671 | xqspi->irq = platform_get_irq(pdev, 0); |
672 | if (xqspi->irq <= 0) { | 672 | if (xqspi->irq <= 0) { |
673 | ret = -ENXIO; | 673 | ret = -ENXIO; |
674 | dev_err(&pdev->dev, "irq resource not found\n"); | ||
675 | goto remove_master; | 674 | goto remove_master; |
676 | } | 675 | } |
677 | ret = devm_request_irq(&pdev->dev, xqspi->irq, zynq_qspi_irq, | 676 | ret = devm_request_irq(&pdev->dev, xqspi->irq, zynq_qspi_irq, |
diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c index 07a83ca164c2..5e9ea8a38163 100644 --- a/drivers/spi/spi-zynqmp-gqspi.c +++ b/drivers/spi/spi-zynqmp-gqspi.c | |||
@@ -1077,7 +1077,6 @@ static int zynqmp_qspi_probe(struct platform_device *pdev) | |||
1077 | xqspi->irq = platform_get_irq(pdev, 0); | 1077 | xqspi->irq = platform_get_irq(pdev, 0); |
1078 | if (xqspi->irq <= 0) { | 1078 | if (xqspi->irq <= 0) { |
1079 | ret = -ENXIO; | 1079 | ret = -ENXIO; |
1080 | dev_err(dev, "irq resource not found\n"); | ||
1081 | goto clk_dis_all; | 1080 | goto clk_dis_all; |
1082 | } | 1081 | } |
1083 | ret = devm_request_irq(&pdev->dev, xqspi->irq, zynqmp_qspi_irq, | 1082 | ret = devm_request_irq(&pdev->dev, xqspi->irq, zynqmp_qspi_irq, |