Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH] staging: nvec: use dev_err_probe() for reset control error
@ 2026-11-30 19:35 Gleb Titov
  0 siblings, 0 replies; only message in thread
From: Gleb Titov @ 2026-11-30 19:35 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-staging, linux-kernel, linux-tegra, ac100, Gleb Titov

Signed-off-by: Gleb Titov <dexield.community@gmail.com>
---
 drivers/staging/nvec/nvec.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
index b4ad6cb27..7f3b39e7a 100644
--- a/drivers/staging/nvec/nvec.c
+++ b/drivers/staging/nvec/nvec.c
@@ -823,10 +823,9 @@ static int tegra_nvec_probe(struct platform_device *pdev)
 				     "failed to get controller clock\n");
 
 	nvec->rst = devm_reset_control_get_exclusive(dev, "i2c");
-	if (IS_ERR(nvec->rst)) {
-		dev_err(dev, "failed to get controller reset\n");
-		return PTR_ERR(nvec->rst);
-	}
+	if (IS_ERR(nvec->rst))
+		return dev_err_probe(dev, PTR_ERR(nvec->rst),
+				     "failed to get controller reset\n");
 
 	nvec->base = base;
 	nvec->i2c_clk = i2c_clk;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 19:35 [PATCH] staging: nvec: use dev_err_probe() for reset control error Gleb Titov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox