Commit 033ccdb7 authored by YueHaibing's avatar YueHaibing Committed by Thierry Reding

gpu: host1x: Remove dev_err() on platform_get_irq() failure

platform_get_irq() will call dev_err() itself on failure,
so there is no need for the driver to also do this.
This is detected by coccinelle.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 271502ef
...@@ -339,10 +339,8 @@ static int host1x_probe(struct platform_device *pdev) ...@@ -339,10 +339,8 @@ static int host1x_probe(struct platform_device *pdev)
} }
syncpt_irq = platform_get_irq(pdev, 0); syncpt_irq = platform_get_irq(pdev, 0);
if (syncpt_irq < 0) { if (syncpt_irq < 0)
dev_err(&pdev->dev, "failed to get IRQ: %d\n", syncpt_irq);
return syncpt_irq; return syncpt_irq;
}
mutex_init(&host->devices_lock); mutex_init(&host->devices_lock);
INIT_LIST_HEAD(&host->devices); INIT_LIST_HEAD(&host->devices);
......
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