memory: tegra: Remove superfluous error messages around platform_get_irq()
The platform_get_irq() prints error message telling that interrupt is missing, hence there is no need to duplicated that message in the drivers. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Link: https://lore.kernel.org/r/20201104164923.21238-31-digetx@gmail.com Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:
parent
4e84d0a6e1
commit
162641a6e2
|
@ -707,10 +707,8 @@ static int tegra_mc_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
mc->irq = platform_get_irq(pdev, 0);
|
mc->irq = platform_get_irq(pdev, 0);
|
||||||
if (mc->irq < 0) {
|
if (mc->irq < 0)
|
||||||
dev_err(&pdev->dev, "interrupt not specified\n");
|
|
||||||
return mc->irq;
|
return mc->irq;
|
||||||
}
|
|
||||||
|
|
||||||
WARN(!mc->soc->client_id_mask, "missing client ID mask for this SoC\n");
|
WARN(!mc->soc->client_id_mask, "missing client ID mask for this SoC\n");
|
||||||
|
|
||||||
|
|
|
@ -665,7 +665,6 @@ static int tegra_emc_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, "interrupt not specified\n");
|
|
||||||
dev_err(&pdev->dev, "please update your device tree\n");
|
dev_err(&pdev->dev, "please update your device tree\n");
|
||||||
return irq;
|
return irq;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1299,10 +1299,9 @@ static int tegra_emc_probe(struct platform_device *pdev)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
err = platform_get_irq(pdev, 0);
|
err = platform_get_irq(pdev, 0);
|
||||||
if (err < 0) {
|
if (err < 0)
|
||||||
dev_err(&pdev->dev, "interrupt not specified: %d\n", err);
|
|
||||||
return err;
|
return err;
|
||||||
}
|
|
||||||
emc->irq = err;
|
emc->irq = err;
|
||||||
|
|
||||||
err = devm_request_irq(&pdev->dev, emc->irq, tegra_emc_isr, 0,
|
err = devm_request_irq(&pdev->dev, emc->irq, tegra_emc_isr, 0,
|
||||||
|
|
Loading…
Reference in New Issue