[5/7] bus: ti-sysc: Don't warn about legacy property for nested ti-sysc devices
diff mbox series

Message ID 20200221195256.54016-6-tony@atomide.com
State In Next
Commit 7320fd322fe9b1485372e6da294590c5bcabbe1c
Headers show
  • ti-sysc driver fix for hdq1w and few improvments
Related show

Commit Message

Tony Lindgren Feb. 21, 2020, 7:52 p.m. UTC
In some cases we can have nested ti-sysc instances that may still use the
legacy "ti,hwmods" property. Let's not warn if that's the case.

Signed-off-by: Tony Lindgren <tony@atomide.com>
 drivers/bus/ti-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -624,7 +624,7 @@  static void sysc_check_one_child(struct sysc *ddata,
 	const char *name;
 	name = of_get_property(np, "ti,hwmods", NULL);
-	if (name)
+	if (name && !of_device_is_compatible(np, "ti,sysc"))
 		dev_warn(ddata->dev, "really a child ti,hwmods property?");
 	sysc_check_quirk_stdout(ddata, np);