aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/remoteproc/st_remoteproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/st_remoteproc.c b/drivers/remoteproc/st_remoteproc.c
index 6bb04d453247..6f056caa8a56 100644
--- a/drivers/remoteproc/st_remoteproc.c
+++ b/drivers/remoteproc/st_remoteproc.c
@@ -189,9 +189,9 @@ static int st_rproc_parse_dt(struct platform_device *pdev)
189 } 189 }
190 190
191 ddata->boot_base = syscon_regmap_lookup_by_phandle(np, "st,syscfg"); 191 ddata->boot_base = syscon_regmap_lookup_by_phandle(np, "st,syscfg");
192 if (!ddata->boot_base) { 192 if (IS_ERR(ddata->boot_base)) {
193 dev_err(dev, "Boot base not found\n"); 193 dev_err(dev, "Boot base not found\n");
194 return -EINVAL; 194 return PTR_ERR(ddata->boot_base);
195 } 195 }
196 196
197 err = of_property_read_u32_index(np, "st,syscfg", 1, 197 err = of_property_read_u32_index(np, "st,syscfg", 1,