]> git.karo-electronics.de Git - linux-beck.git/commit
clk: sunxi: Let divs clocks read the base factor clock name from devicetree
authorJens Kuske <jenskuske@gmail.com>
Fri, 18 Mar 2016 09:44:15 +0000 (09:44 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 25 Apr 2016 08:57:45 +0000 (10:57 +0200)
commitff2bb89335daec6053b5ac778369f7f72b931142
tree8e58646da0e6898d88955be7d9cb1f94ed86c12b
parentcc510c736b1b278a9925a4a051ecfa72ef8c21fc
clk: sunxi: Let divs clocks read the base factor clock name from devicetree

Currently, the sunxi clock driver gets the name for the base factor clock
of divs clocks from the name field in factors_data. This prevents reusing
of the factor clock for clocks with same properties, but different name.

This commit makes the divs setup function try to get a name from
clock-output-names in the devicetree. It also removes the name field where
possible and merges the sun4i PLL5 and PLL6 clocks.

[Andre: Make temporary name allocation dynamic.]

Signed-off-by: Jens Kuske <jenskuske@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sunxi.c