mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 12:24:34 +08:00
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);
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user