]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: sun6i-apb0-gates: use bitmaps for valid gate indices
authorChen-Yu Tsai <wens@csie.org>
Wed, 9 Jul 2014 07:54:34 +0000 (15:54 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 15 Jul 2014 06:52:11 +0000 (08:52 +0200)
commit0449b935753455121e1b573f3f8dd595207c0322
treeb2a88aefb3d90eba77cd965be90730eeeeb9d299
parentd33da9e622b68321c59be0e4727895c18bf8a15f
clk: sunxi: sun6i-apb0-gates: use bitmaps for valid gate indices

sun6i-apb0-gates uses the "clock-indices" DT property to indicate
valid gate bits or holes in between. However, the rest of sunxi
clock drivers use bitmaps for this purpose.

This patch modifies sun6i-apb0-gates to use bitmaps as well, to be
consistent with the sunxi platform. Also add the missing call to
clk_register_clkdev, so system clock lookups will work.

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