summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2020-02-24 21:58:03 +0100
committerTony Lindgren <tony@atomide.com>2020-02-26 19:03:35 +0100
commit7320fd322fe9b1485372e6da294590c5bcabbe1c (patch)
treeac111bbf379b113aa797a4db1d3e30879138f379
parentbus: ti-sysc: Consider non-existing registers too when matching quirks (diff)
downloadlinux-7320fd322fe9b1485372e6da294590c5bcabbe1c.tar.xz
linux-7320fd322fe9b1485372e6da294590c5bcabbe1c.zip
bus: ti-sysc: Don't warn about legacy property for nested ti-sysc devices
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>
-rw-r--r--drivers/bus/ti-sysc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index c0298612e57c..4e87eb5e8ed7 100644
--- 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);