Commit 8e99ca3f authored by Guobin Huang's avatar Guobin Huang Committed by David S. Miller

mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarGuobin Huang <huangguobin4@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d93a4f9
...@@ -40,10 +40,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev) ...@@ -40,10 +40,8 @@ static int mt7622_wmac_probe(struct platform_device *pdev)
return irq; return irq;
mem_base = devm_ioremap_resource(&pdev->dev, res); mem_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(mem_base)) { if (IS_ERR(mem_base))
dev_err(&pdev->dev, "Failed to get memory resource\n");
return PTR_ERR(mem_base); return PTR_ERR(mem_base);
}
return mt7615_mmio_probe(&pdev->dev, mem_base, irq, mt7615e_reg_map); return mt7615_mmio_probe(&pdev->dev, mem_base, irq, mt7615e_reg_map);
} }
......
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