[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230718030511.16065-1-machel@vivo.com>
Date: Tue, 18 Jul 2023 11:04:56 +0800
From: Wang Ming <machel@...o.com>
To: Philipp Zabel <p.zabel@...gutronix.de>,
Wang Ming <machel@...o.com>, linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com
Subject: [PATCH v1] 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@...o.com>
---
drivers/reset/hisilicon/reset-hi3660.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/reset/hisilicon/reset-hi3660.c b/drivers/reset/hisilicon/reset-hi3660.c
index 965f5ceba7d8..bc8fee6dc14e 100644
--- a/drivers/reset/hisilicon/reset-hi3660.c
+++ b/drivers/reset/hisilicon/reset-hi3660.c
@@ -90,7 +90,7 @@ 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");
+ dev_err_probe(dev, "failed to get hisilicon,rst-syscon\n");
return PTR_ERR(rc->map);
}
--
2.25.1
Powered by blists - more mailing lists