lkml.org 
[lkml]   [2020]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] remoteproc: stm32: don't print an error on probe deferral
Date
From: Etienne Carriere <etienne.carriere@st.com>

Change stm32 remoteproc driver to not generate an error message
when device probe operation is deferred for the reset controller.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
---
drivers/remoteproc/stm32_rproc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c
index a180aeae9675..25c916782991 100644
--- a/drivers/remoteproc/stm32_rproc.c
+++ b/drivers/remoteproc/stm32_rproc.c
@@ -614,7 +614,9 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev,

ddata->rst = devm_reset_control_get_by_index(dev, 0);
if (IS_ERR(ddata->rst)) {
- dev_err(dev, "failed to get mcu reset\n");
+ if (PTR_ERR(ddata->rst) != -EPROBE_DEFER)
+ dev_err(dev, "failed to get mcu reset\n");
+
return PTR_ERR(ddata->rst);
}

--
2.17.1
\
 
 \ /
  Last update: 2020-12-09 14:16    [W:0.035 / U:2.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site