Commit 6b8ac10e authored by Stephen Boyd's avatar Stephen Boyd Committed by Mark Brown

spi: Remove dev_err() usage after platform_get_irq()

We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

// <smpl>
@@
expression ret;
struct platform_device *E;
@@

ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);

if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>

While we're here, remove braces on if statements that only have one
statement (manually).

Cc: Mark Brown <broonie@kernel.org>
Cc: linux-spi@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20190730181557.90391-42-swboyd@chromium.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4ff13d00
...@@ -526,7 +526,6 @@ static int atmel_qspi_probe(struct platform_device *pdev) ...@@ -526,7 +526,6 @@ static int atmel_qspi_probe(struct platform_device *pdev)
/* Request the IRQ */ /* Request the IRQ */
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "missing IRQ\n");
err = irq; err = irq;
goto disable_qspick; goto disable_qspick;
} }
......
...@@ -864,7 +864,6 @@ static int a3700_spi_probe(struct platform_device *pdev) ...@@ -864,7 +864,6 @@ static int a3700_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(dev, "could not get irq: %d\n", irq);
ret = -ENXIO; ret = -ENXIO;
goto error; goto error;
} }
......
...@@ -1015,7 +1015,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev) ...@@ -1015,7 +1015,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev)
bs->irq = platform_get_irq(pdev, 0); bs->irq = platform_get_irq(pdev, 0);
if (bs->irq <= 0) { if (bs->irq <= 0) {
dev_err(&pdev->dev, "could not get IRQ: %d\n", bs->irq);
err = bs->irq ? bs->irq : -ENODEV; err = bs->irq ? bs->irq : -ENODEV;
goto out_controller_put; goto out_controller_put;
} }
......
...@@ -540,7 +540,6 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev) ...@@ -540,7 +540,6 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev)
bs->irq = platform_get_irq(pdev, 0); bs->irq = platform_get_irq(pdev, 0);
if (bs->irq <= 0) { if (bs->irq <= 0) {
dev_err(&pdev->dev, "could not get IRQ: %d\n", bs->irq);
err = bs->irq ? bs->irq : -ENODEV; err = bs->irq ? bs->irq : -ENODEV;
goto out_master_put; goto out_master_put;
} }
......
...@@ -338,10 +338,8 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) ...@@ -338,10 +338,8 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev)
u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS; u32 reg, rate, num_cs = HSSPI_SPI_MAX_CS;
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(dev, "no irq: %d\n", irq);
return irq; return irq;
}
res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
regs = devm_ioremap_resource(dev, res_mem); regs = devm_ioremap_resource(dev, res_mem);
......
...@@ -520,10 +520,8 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) ...@@ -520,10 +520,8 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
} }
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(dev, "no irq: %d\n", irq);
return irq; return irq;
}
clk = devm_clk_get(dev, "spi"); clk = devm_clk_get(dev, "spi");
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
......
...@@ -540,7 +540,6 @@ static int cdns_spi_probe(struct platform_device *pdev) ...@@ -540,7 +540,6 @@ static int cdns_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq <= 0) { if (irq <= 0) {
ret = -ENXIO; ret = -ENXIO;
dev_err(&pdev->dev, "irq number is invalid\n");
goto clk_dis_all; goto clk_dis_all;
} }
......
...@@ -156,10 +156,8 @@ static int dw_spi_mmio_probe(struct platform_device *pdev) ...@@ -156,10 +156,8 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
} }
dws->irq = platform_get_irq(pdev, 0); dws->irq = platform_get_irq(pdev, 0);
if (dws->irq < 0) { if (dws->irq < 0)
dev_err(&pdev->dev, "no irq resource?\n");
return dws->irq; /* -ENXIO */ return dws->irq; /* -ENXIO */
}
dwsmmio->clk = devm_clk_get(&pdev->dev, NULL); dwsmmio->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(dwsmmio->clk)) if (IS_ERR(dwsmmio->clk))
......
...@@ -400,10 +400,8 @@ static int efm32_spi_probe(struct platform_device *pdev) ...@@ -400,10 +400,8 @@ static int efm32_spi_probe(struct platform_device *pdev)
} }
ret = platform_get_irq(pdev, 0); ret = platform_get_irq(pdev, 0);
if (ret <= 0) { if (ret <= 0)
dev_err(&pdev->dev, "failed to get rx irq (%d)\n", ret);
goto err; goto err;
}
ddata->rxirq = ret; ddata->rxirq = ret;
......
...@@ -656,10 +656,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev) ...@@ -656,10 +656,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev)
} }
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(&pdev->dev, "failed to get irq resources\n");
return -EBUSY; return -EBUSY;
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) { if (!res) {
......
...@@ -1105,7 +1105,6 @@ static int dspi_probe(struct platform_device *pdev) ...@@ -1105,7 +1105,6 @@ static int dspi_probe(struct platform_device *pdev)
dspi_init(dspi); dspi_init(dspi);
dspi->irq = platform_get_irq(pdev, 0); dspi->irq = platform_get_irq(pdev, 0);
if (dspi->irq < 0) { if (dspi->irq < 0) {
dev_err(&pdev->dev, "can't get platform irq\n");
ret = dspi->irq; ret = dspi->irq;
goto out_clk_put; goto out_clk_put;
} }
......
...@@ -860,10 +860,8 @@ static int fsl_qspi_probe(struct platform_device *pdev) ...@@ -860,10 +860,8 @@ static int fsl_qspi_probe(struct platform_device *pdev)
/* find the irq */ /* find the irq */
ret = platform_get_irq(pdev, 0); ret = platform_get_irq(pdev, 0);
if (ret < 0) { if (ret < 0)
dev_err(dev, "failed to get the irq: %d\n", ret);
goto err_disable_clk; goto err_disable_clk;
}
ret = devm_request_irq(dev, ret, ret = devm_request_irq(dev, ret,
fsl_qspi_irq_handler, 0, pdev->name, q); fsl_qspi_irq_handler, 0, pdev->name, q);
......
...@@ -539,10 +539,8 @@ static int spi_geni_probe(struct platform_device *pdev) ...@@ -539,10 +539,8 @@ static int spi_geni_probe(struct platform_device *pdev)
struct clk *clk; struct clk *clk;
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(&pdev->dev, "Err getting IRQ %d\n", irq);
return irq; return irq;
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(&pdev->dev, res); base = devm_ioremap_resource(&pdev->dev, res);
......
...@@ -819,22 +819,16 @@ static int lantiq_ssc_probe(struct platform_device *pdev) ...@@ -819,22 +819,16 @@ static int lantiq_ssc_probe(struct platform_device *pdev)
} }
rx_irq = platform_get_irq_byname(pdev, LTQ_SPI_RX_IRQ_NAME); rx_irq = platform_get_irq_byname(pdev, LTQ_SPI_RX_IRQ_NAME);
if (rx_irq < 0) { if (rx_irq < 0)
dev_err(dev, "failed to get %s\n", LTQ_SPI_RX_IRQ_NAME);
return -ENXIO; return -ENXIO;
}
tx_irq = platform_get_irq_byname(pdev, LTQ_SPI_TX_IRQ_NAME); tx_irq = platform_get_irq_byname(pdev, LTQ_SPI_TX_IRQ_NAME);
if (tx_irq < 0) { if (tx_irq < 0)
dev_err(dev, "failed to get %s\n", LTQ_SPI_TX_IRQ_NAME);
return -ENXIO; return -ENXIO;
}
err_irq = platform_get_irq_byname(pdev, LTQ_SPI_ERR_IRQ_NAME); err_irq = platform_get_irq_byname(pdev, LTQ_SPI_ERR_IRQ_NAME);
if (err_irq < 0) { if (err_irq < 0)
dev_err(dev, "failed to get %s\n", LTQ_SPI_ERR_IRQ_NAME);
return -ENXIO; return -ENXIO;
}
master = spi_alloc_master(dev, sizeof(struct lantiq_ssc_spi)); master = spi_alloc_master(dev, sizeof(struct lantiq_ssc_spi));
if (!master) if (!master)
......
...@@ -664,7 +664,6 @@ static int mtk_spi_probe(struct platform_device *pdev) ...@@ -664,7 +664,6 @@ static int mtk_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "failed to get irq (%d)\n", irq);
ret = irq; ret = irq;
goto err_put_master; goto err_put_master;
} }
......
...@@ -388,7 +388,6 @@ static int npcm_pspi_probe(struct platform_device *pdev) ...@@ -388,7 +388,6 @@ static int npcm_pspi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "failed to get IRQ\n");
ret = irq; ret = irq;
goto out_disable_clk; goto out_disable_clk;
} }
......
...@@ -367,7 +367,6 @@ static int nuc900_spi_probe(struct platform_device *pdev) ...@@ -367,7 +367,6 @@ static int nuc900_spi_probe(struct platform_device *pdev)
hw->irq = platform_get_irq(pdev, 0); hw->irq = platform_get_irq(pdev, 0);
if (hw->irq < 0) { if (hw->irq < 0) {
dev_err(&pdev->dev, "No IRQ specified\n");
err = -ENOENT; err = -ENOENT;
goto err_pdata; goto err_pdata;
} }
......
...@@ -1007,10 +1007,8 @@ static int nxp_fspi_probe(struct platform_device *pdev) ...@@ -1007,10 +1007,8 @@ static int nxp_fspi_probe(struct platform_device *pdev)
/* find the irq */ /* find the irq */
ret = platform_get_irq(pdev, 0); ret = platform_get_irq(pdev, 0);
if (ret < 0) { if (ret < 0)
dev_err(dev, "failed to get the irq: %d\n", ret);
goto err_disable_clk; goto err_disable_clk;
}
ret = devm_request_irq(dev, ret, ret = devm_request_irq(dev, ret,
nxp_fspi_irq_handler, 0, pdev->name, f); nxp_fspi_irq_handler, 0, pdev->name, f);
......
...@@ -590,7 +590,6 @@ static int pic32_sqi_probe(struct platform_device *pdev) ...@@ -590,7 +590,6 @@ static int pic32_sqi_probe(struct platform_device *pdev)
/* irq */ /* irq */
sqi->irq = platform_get_irq(pdev, 0); sqi->irq = platform_get_irq(pdev, 0);
if (sqi->irq < 0) { if (sqi->irq < 0) {
dev_err(&pdev->dev, "no irq found\n");
ret = sqi->irq; ret = sqi->irq;
goto err_free_master; goto err_free_master;
} }
......
...@@ -711,22 +711,16 @@ static int pic32_spi_hw_probe(struct platform_device *pdev, ...@@ -711,22 +711,16 @@ static int pic32_spi_hw_probe(struct platform_device *pdev,
/* get irq resources: err-irq, rx-irq, tx-irq */ /* get irq resources: err-irq, rx-irq, tx-irq */
pic32s->fault_irq = platform_get_irq_byname(pdev, "fault"); pic32s->fault_irq = platform_get_irq_byname(pdev, "fault");
if (pic32s->fault_irq < 0) { if (pic32s->fault_irq < 0)
dev_err(&pdev->dev, "fault-irq not found\n");
return pic32s->fault_irq; return pic32s->fault_irq;
}
pic32s->rx_irq = platform_get_irq_byname(pdev, "rx"); pic32s->rx_irq = platform_get_irq_byname(pdev, "rx");
if (pic32s->rx_irq < 0) { if (pic32s->rx_irq < 0)
dev_err(&pdev->dev, "rx-irq not found\n");
return pic32s->rx_irq; return pic32s->rx_irq;
}
pic32s->tx_irq = platform_get_irq_byname(pdev, "tx"); pic32s->tx_irq = platform_get_irq_byname(pdev, "tx");
if (pic32s->tx_irq < 0) { if (pic32s->tx_irq < 0)
dev_err(&pdev->dev, "tx-irq not found\n");
return pic32s->tx_irq; return pic32s->tx_irq;
}
/* get clock */ /* get clock */
pic32s->clk = devm_clk_get(&pdev->dev, "mck0"); pic32s->clk = devm_clk_get(&pdev->dev, "mck0");
......
...@@ -454,10 +454,8 @@ static int qcom_qspi_probe(struct platform_device *pdev) ...@@ -454,10 +454,8 @@ static int qcom_qspi_probe(struct platform_device *pdev)
goto exit_probe_master_put; goto exit_probe_master_put;
ret = platform_get_irq(pdev, 0); ret = platform_get_irq(pdev, 0);
if (ret < 0) { if (ret < 0)
dev_err(dev, "Failed to get irq %d\n", ret);
goto exit_probe_master_put; goto exit_probe_master_put;
}
ret = devm_request_irq(dev, ret, qcom_qspi_irq, ret = devm_request_irq(dev, ret, qcom_qspi_irq,
IRQF_TRIGGER_HIGH, dev_name(dev), ctrl); IRQF_TRIGGER_HIGH, dev_name(dev), ctrl);
if (ret) { if (ret) {
......
...@@ -545,7 +545,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev) ...@@ -545,7 +545,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev)
hw->irq = platform_get_irq(pdev, 0); hw->irq = platform_get_irq(pdev, 0);
if (hw->irq < 0) { if (hw->irq < 0) {
dev_err(&pdev->dev, "No IRQ specified\n");
err = -ENOENT; err = -ENOENT;
goto err_no_pdata; goto err_no_pdata;
} }
......
...@@ -1346,7 +1346,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) ...@@ -1346,7 +1346,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
i = platform_get_irq(pdev, 0); i = platform_get_irq(pdev, 0);
if (i < 0) { if (i < 0) {
dev_err(&pdev->dev, "cannot get IRQ\n");
ret = i; ret = i;
goto err1; goto err1;
} }
......
...@@ -437,10 +437,8 @@ static int spi_sh_probe(struct platform_device *pdev) ...@@ -437,10 +437,8 @@ static int spi_sh_probe(struct platform_device *pdev)
} }
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(&pdev->dev, "platform_get_irq error: %d\n", irq);
return irq; return irq;
}
master = spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data)); master = spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data));
if (master == NULL) { if (master == NULL) {
......
...@@ -323,7 +323,6 @@ static int sifive_spi_probe(struct platform_device *pdev) ...@@ -323,7 +323,6 @@ static int sifive_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "Unable to find interrupt\n");
ret = irq; ret = irq;
goto put_master; goto put_master;
} }
......
...@@ -410,7 +410,6 @@ static int mtk_spi_slave_probe(struct platform_device *pdev) ...@@ -410,7 +410,6 @@ static int mtk_spi_slave_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "failed to get irq (%d)\n", irq);
ret = irq; ret = irq;
goto err_put_ctlr; goto err_put_ctlr;
} }
......
...@@ -843,10 +843,8 @@ static int sprd_spi_irq_init(struct platform_device *pdev, struct sprd_spi *ss) ...@@ -843,10 +843,8 @@ static int sprd_spi_irq_init(struct platform_device *pdev, struct sprd_spi *ss)
int ret; int ret;
ss->irq = platform_get_irq(pdev, 0); ss->irq = platform_get_irq(pdev, 0);
if (ss->irq < 0) { if (ss->irq < 0)
dev_err(&pdev->dev, "failed to get irq resource\n");
return ss->irq; return ss->irq;
}
ret = devm_request_irq(&pdev->dev, ss->irq, sprd_spi_handle_irq, ret = devm_request_irq(&pdev->dev, ss->irq, sprd_spi_handle_irq,
0, pdev->name, ss); 0, pdev->name, ss);
......
...@@ -570,11 +570,8 @@ static int stm32_qspi_probe(struct platform_device *pdev) ...@@ -570,11 +570,8 @@ static int stm32_qspi_probe(struct platform_device *pdev)
} }
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
if (irq != -EPROBE_DEFER)
dev_err(dev, "IRQ error missing or invalid\n");
return irq; return irq;
}
ret = devm_request_irq(dev, irq, stm32_qspi_irq, 0, ret = devm_request_irq(dev, irq, stm32_qspi_irq, 0,
dev_name(dev), qspi); dev_name(dev), qspi);
......
...@@ -449,7 +449,6 @@ static int sun4i_spi_probe(struct platform_device *pdev) ...@@ -449,7 +449,6 @@ static int sun4i_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "No spi IRQ specified\n");
ret = -ENXIO; ret = -ENXIO;
goto err_free_master; goto err_free_master;
} }
......
...@@ -456,7 +456,6 @@ static int sun6i_spi_probe(struct platform_device *pdev) ...@@ -456,7 +456,6 @@ static int sun6i_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "No spi IRQ specified\n");
ret = -ENXIO; ret = -ENXIO;
goto err_free_master; goto err_free_master;
} }
......
...@@ -670,7 +670,6 @@ static int synquacer_spi_probe(struct platform_device *pdev) ...@@ -670,7 +670,6 @@ static int synquacer_spi_probe(struct platform_device *pdev)
rx_irq = platform_get_irq(pdev, 0); rx_irq = platform_get_irq(pdev, 0);
if (rx_irq <= 0) { if (rx_irq <= 0) {
dev_err(&pdev->dev, "get rx_irq failed (%d)\n", rx_irq);
ret = rx_irq; ret = rx_irq;
goto put_spi; goto put_spi;
} }
...@@ -685,7 +684,6 @@ static int synquacer_spi_probe(struct platform_device *pdev) ...@@ -685,7 +684,6 @@ static int synquacer_spi_probe(struct platform_device *pdev)
tx_irq = platform_get_irq(pdev, 1); tx_irq = platform_get_irq(pdev, 1);
if (tx_irq <= 0) { if (tx_irq <= 0) {
dev_err(&pdev->dev, "get tx_irq failed (%d)\n", tx_irq);
ret = tx_irq; ret = tx_irq;
goto put_spi; goto put_spi;
} }
......
...@@ -717,7 +717,6 @@ static int ti_qspi_probe(struct platform_device *pdev) ...@@ -717,7 +717,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "no irq resource?\n");
ret = irq; ret = irq;
goto free_master; goto free_master;
} }
......
...@@ -454,7 +454,6 @@ static int uniphier_spi_probe(struct platform_device *pdev) ...@@ -454,7 +454,6 @@ static int uniphier_spi_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
dev_err(&pdev->dev, "failed to get IRQ\n");
ret = irq; ret = irq;
goto out_disable_clk; goto out_disable_clk;
} }
......
...@@ -384,10 +384,8 @@ static int xlp_spi_probe(struct platform_device *pdev) ...@@ -384,10 +384,8 @@ static int xlp_spi_probe(struct platform_device *pdev)
return PTR_ERR(xspi->base); return PTR_ERR(xspi->base);
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(&pdev->dev, "no IRQ resource found: %d\n", irq);
return irq; return irq;
}
err = devm_request_irq(&pdev->dev, irq, xlp_spi_interrupt, 0, err = devm_request_irq(&pdev->dev, irq, xlp_spi_interrupt, 0,
pdev->name, xspi); pdev->name, xspi);
if (err) { if (err) {
......
...@@ -671,7 +671,6 @@ static int zynq_qspi_probe(struct platform_device *pdev) ...@@ -671,7 +671,6 @@ static int zynq_qspi_probe(struct platform_device *pdev)
xqspi->irq = platform_get_irq(pdev, 0); xqspi->irq = platform_get_irq(pdev, 0);
if (xqspi->irq <= 0) { if (xqspi->irq <= 0) {
ret = -ENXIO; ret = -ENXIO;
dev_err(&pdev->dev, "irq resource not found\n");
goto remove_master; goto remove_master;
} }
ret = devm_request_irq(&pdev->dev, xqspi->irq, zynq_qspi_irq, ret = devm_request_irq(&pdev->dev, xqspi->irq, zynq_qspi_irq,
......
...@@ -1077,7 +1077,6 @@ static int zynqmp_qspi_probe(struct platform_device *pdev) ...@@ -1077,7 +1077,6 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)
xqspi->irq = platform_get_irq(pdev, 0); xqspi->irq = platform_get_irq(pdev, 0);
if (xqspi->irq <= 0) { if (xqspi->irq <= 0) {
ret = -ENXIO; ret = -ENXIO;
dev_err(dev, "irq resource not found\n");
goto clk_dis_all; goto clk_dis_all;
} }
ret = devm_request_irq(&pdev->dev, xqspi->irq, zynqmp_qspi_irq, ret = devm_request_irq(&pdev->dev, xqspi->irq, zynqmp_qspi_irq,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment