Partially revert "clk: mvebu: Convert to clk_hw based provider APIs"
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 14 Oct 2015 18:23:09 +0000 (11:23 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 14 Oct 2015 18:28:17 +0000 (11:28 -0700)
commite79b202c632f24f49f2eb9459b88b5fd9e332263
tree5e98407067ea20a5799f1e567faff6159acc0fb9
parent9f30a04d768f64280dc0c40b730746e82f298d88
Partially revert "clk: mvebu: Convert to clk_hw based provider APIs"

This partially reverts commit eca61c9ff2588e1df373e61078e1874976315839.

Thomas reports that it causes regressions on Armada XP devices.
This is because of_clk_get_parent_name() relies on the property
'clock-output-names' to resolve the name of a clock's parent,
without trying to get the clock from the framework and call
__clk_get_name(). Given that Armada XP devices don't have the
'clock-output-names' property, of_clk_get_parent_name() returns
the name of the node which doesn't match the actual parent
clock's name at all, causing CPU clocks to never link up with
their parents.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/clk-cpu.c