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
  2026-12-01  5:23 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [PATCH] staging: nvec: use dev_err_probe() for reset control error
  2026-11-30 19:35 [PATCH] staging: nvec: use dev_err_probe() for reset control error Gleb Titov
@ 2026-12-01  5:23 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2026-12-01  5:23 UTC (permalink / raw)
  To: Gleb Titov
  Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, linux-tegra,
	ac100

On Mon, Nov 30, 2026 at 10:35:40PM +0300, Gleb Titov wrote:
> Signed-off-by: Gleb Titov <dexield.community@gmail.com>

Run your patches through checkpatch.  The commit message should
explain why a commit is required.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01  5:23 UTC | newest]

Thread overview: 2+ messages (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
2026-12-01  5:23 ` Dan Carpenter

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