]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: sunxi: Specify number of child clocks for divs clocks
authorChen-Yu Tsai <wens@csie.org>
Wed, 12 Nov 2014 18:08:30 +0000 (02:08 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 23 Nov 2014 16:02:56 +0000 (17:02 +0100)
commit13d52f61065dcdbea13aae2f0aea6af43a3abf65
tree340f76ec04ec82f84ec8ea3b57e3b7a65b4135f6
parenteaa2e9804e9cbd0b46f74e39ca6f92e4834547db
clk: sunxi: Specify number of child clocks for divs clocks

Currently sunxi_divs_clk_setup assumes the number of child clocks
to be the same as the number of clock-output-names, and a maximum
of SUNXI_DIVS_MAX_QTY child clocks.

On sun6i, PLL6 only has 1 child clock, but the parent would be used
as well, thereby also having it's own clock-output-names entry. This
results in an extra bogus clock being registered.

This patch adds an entry for the number of child clocks alongside
the data structures for them.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sunxi.c