diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-03-19 17:03:47 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2020-03-20 07:00:32 +0300 |
commit | 223a83bdcc56effed63661ac9ae209fea0223078 (patch) | |
tree | 2e7badfce5424dfb794722fefab4889ed0f59e51 | |
parent | 6c90b86a745a446717fdf408c4a8a4631a5e8ee3 (diff) | |
download | linux-223a83bdcc56effed63661ac9ae209fea0223078.tar.xz |
mailbox:armada-37xx-rwtm:remove duplicate print in armada_37xx_mbox_probe()
In this function,we don't need dev_err() message because when something
goes wrong,platform_get_irq() and devm_platform_ioremap_resource() have
print an error message itself, so we should remove duplicate dev_err().
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r-- | drivers/mailbox/armada-37xx-rwtm-mailbox.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/mailbox/armada-37xx-rwtm-mailbox.c b/drivers/mailbox/armada-37xx-rwtm-mailbox.c index 02b7b28e6969..9f2ce7f03c67 100644 --- a/drivers/mailbox/armada-37xx-rwtm-mailbox.c +++ b/drivers/mailbox/armada-37xx-rwtm-mailbox.c @@ -156,16 +156,12 @@ static int armada_37xx_mbox_probe(struct platform_device *pdev) return -ENOMEM; mbox->base = devm_platform_ioremap_resource(pdev, 0); - if (IS_ERR(mbox->base)) { - dev_err(&pdev->dev, "ioremap failed\n"); + if (IS_ERR(mbox->base)) return PTR_ERR(mbox->base); - } mbox->irq = platform_get_irq(pdev, 0); - if (mbox->irq < 0) { - dev_err(&pdev->dev, "Cannot get irq\n"); + if (mbox->irq < 0) return mbox->irq; - } mbox->dev = &pdev->dev; |