[PATCH] ARM: omap: omap_hwmod: do not WARN() on missing nodes for hwmods

From: Andreas Kemnade

Date: Sat Oct 31 2026 - 08:06:01 EST


If devices are converted from hwmod to ti-sysc, there might be an interim
state with the hwmod data still present but the devicetree not referencing
the hwmod. In such cases, the hwmod device data is still there,
the hwmod infrastructure does ignore that device but prints out a big
alarming WARN().
Be more silent in that case to avoid needing putting devicetree and
code changes into one patch but into one series, only require the
hwmod cleanup to come after the devicetree conversion.

Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>
---
arch/arm/mach-omap2/omap_hwmod.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 03cd523dff87..a67442a6a2c6 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -2329,8 +2329,10 @@ static int __init _init(struct omap_hwmod *oh, void *data)

r = _init_mpu_rt_base(oh, NULL, index, np);
if (r < 0) {
- WARN(1, "omap_hwmod: %s: doesn't have mpu register target base\n",
- oh->name);
+ /* there might be a transition ongoing from hwmod to ti-sys */
+ if (np)
+ WARN(1, "omap_hwmod: %s: doesn't have mpu register target base\n",
+ oh->name);
r = 0;
goto out_put_node;
}
--
2.47.3