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: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f2ad83af32
commit
37f7c66f45
|
@ -248,11 +248,8 @@ static int ptp_dte_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
ptp_dte->regs = devm_ioremap_resource(dev, res);
|
ptp_dte->regs = devm_ioremap_resource(dev, res);
|
||||||
if (IS_ERR(ptp_dte->regs)) {
|
if (IS_ERR(ptp_dte->regs))
|
||||||
dev_err(dev,
|
|
||||||
"%s: io remap failed\n", __func__);
|
|
||||||
return PTR_ERR(ptp_dte->regs);
|
return PTR_ERR(ptp_dte->regs);
|
||||||
}
|
|
||||||
|
|
||||||
spin_lock_init(&ptp_dte->lock);
|
spin_lock_init(&ptp_dte->lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue