On failure, the platform_get_irq_byname prints an error message
so, patch removes error message related to this function from
core.c file.

A change was suggested during reviewing CDNSP driver by Chunfeng Yun.

Signed-off-by: Pawel Laszczak <paw...@cadence.com>
---
 drivers/usb/cdns3/core.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index a0f73d4711ae..4fd3c742d9d5 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -469,9 +469,6 @@ static int cdns3_probe(struct platform_device *pdev)
        if (cdns->dev_irq == -EPROBE_DEFER)
                return cdns->dev_irq;
 
-       if (cdns->dev_irq < 0)
-               dev_err(dev, "couldn't get peripheral irq\n");
-
        regs = devm_platform_ioremap_resource_byname(pdev, "dev");
        if (IS_ERR(regs))
                return PTR_ERR(regs);
@@ -481,10 +478,8 @@ static int cdns3_probe(struct platform_device *pdev)
        if (cdns->otg_irq == -EPROBE_DEFER)
                return cdns->otg_irq;
 
-       if (cdns->otg_irq < 0) {
-               dev_err(dev, "couldn't get otg irq\n");
+       if (cdns->otg_irq < 0)
                return cdns->otg_irq;
-       }
 
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "otg");
        if (!res) {
-- 
2.17.1

Reply via email to