clk: ti: Handle possible address in the node name
authorTony Lindgren <tony@atomide.com>
Tue, 13 Feb 2024 10:48:52 +0000 (12:48 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 26 Feb 2024 11:08:24 +0000 (13:08 +0200)
commit3516338543cafb658cbd235038c0047d2a8f3068
treede8302aae002ab339cb79c689f77df3e33849b15
parent6613476e225e090cc9aad49be7fa504e290dd33d
clk: ti: Handle possible address in the node name

In order to use #address-cells = <1> and start making use of the
standard reg property, let's prepare things to ignore the possible
address in the clock node name.

Unless the clock-output-names property is used, the legacy clocks still
fall back to matching the clock data based on the node name.

We use cleanup.h to simplify the return path for freeing tmp.

Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/clk/ti/clk.c