clk: ti: dra7x: prevent non-existing clkctrl clocks from registering
authorTero Kristo <t-kristo@ti.com>
Thu, 4 Apr 2019 08:11:04 +0000 (11:11 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 17:51:33 +0000 (10:51 -0700)
commit2b1202d708fd3117bca6bad8770353f389ee0f08
treec9b5fc9a2940a48767557886d32bb3414bd6fe26
parenta348f05361c968cf4a54b6a4f3aeb6f9a271956a
clk: ti: dra7x: prevent non-existing clkctrl clocks from registering

Certain clkctrl clocks (like the USB_OTG_SS4) do not exist on some
variants of the dra7x SoC. Append a flag for these clocks and skip
the registration in cases where the clocks do not exist.

Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ti/clk-7xx-compat.c
drivers/clk/ti/clk-7xx.c
drivers/clk/ti/clkctrl.c
drivers/clk/ti/clock.h