Skip to content

Commit

Permalink
bus: ti-sysc: Don't warn about legacy property for nested ti-sysc dev…
Browse files Browse the repository at this point in the history
…ices

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>
  • Loading branch information
Tony Lindgren committed Feb 26, 2020
1 parent 590e15c commit 7320fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bus/ti-sysc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7320fd3

Please sign in to comment.