Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tang Bin and committed by
Jassi Brar
223a83bd 6c90b86a

+2 -6
+2 -6
drivers/mailbox/armada-37xx-rwtm-mailbox.c
··· 156 156 return -ENOMEM; 157 157 158 158 mbox->base = devm_platform_ioremap_resource(pdev, 0); 159 - if (IS_ERR(mbox->base)) { 160 - dev_err(&pdev->dev, "ioremap failed\n"); 159 + if (IS_ERR(mbox->base)) 161 160 return PTR_ERR(mbox->base); 162 - } 163 161 164 162 mbox->irq = platform_get_irq(pdev, 0); 165 - if (mbox->irq < 0) { 166 - dev_err(&pdev->dev, "Cannot get irq\n"); 163 + if (mbox->irq < 0) 167 164 return mbox->irq; 168 - } 169 165 170 166 mbox->dev = &pdev->dev; 171 167