Commit 37f7c66f authored by Ding Xiang's avatar Ding Xiang Committed by David S. Miller

ptp: ptp_dte: remove redundant dev_err message

devm_ioremap_resource already contains error message, so remove
the redundant dev_err message
Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f2ad83af
......@@ -248,11 +248,8 @@ static int ptp_dte_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ptp_dte->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(ptp_dte->regs)) {
dev_err(dev,
"%s: io remap failed\n", __func__);
if (IS_ERR(ptp_dte->regs))
return PTR_ERR(ptp_dte->regs);
}
spin_lock_init(&ptp_dte->lock);
......
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