mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
reset: hisilicon: Use dev_err_probe instead of dev_err
The probe process may generate EPROBE_DEFER. In this case, dev_err_probe can still record err information. This helps simplify code and standardize error output. Signed-off-by: Wang Ming <machel@vivo.com> Link: https://lore.kernel.org/r/20230726114555.5011-1-machel@vivo.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
f7cb24e466
commit
38d09b9897
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ static int hi3660_reset_probe(struct platform_device *pdev)
|
|||
"hisi,rst-syscon");
|
||||
}
|
||||
if (IS_ERR(rc->map)) {
|
||||
dev_err(dev, "failed to get hisilicon,rst-syscon\n");
|
||||
return PTR_ERR(rc->map);
|
||||
return dev_err_probe(dev, PTR_ERR(rc->map),
|
||||
"failed to get hisilicon,rst-syscon\n");
|
||||
}
|
||||
|
||||
rc->rst.ops = &hi3660_reset_ops,
|
||||
|
|
Loading…
Reference in a new issue