clk: sunxi: factors: Invert the probing logic
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 4 Jul 2014 20:24:52 +0000 (22:24 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 27 Sep 2014 06:58:01 +0000 (08:58 +0200)
commit601da9d0a54c0fea7f5a208bc107d7ef1de4f570
tree7ef940807784343319cf92c4c23a56e7157964d6
parent9824cf73c3a5e677bee6fcba43c4807e01ff1b4a
clk: sunxi: factors: Invert the probing logic

Until now, the factors clock probing was done directly by sunxi_init_clocks,
with the factors registration being called directly with the clocks data passed
as an argument.

This approch has shown its limits when we added more clocks, since we couldn't
really split code with such a logic in smaller files, and led to a huge file
having all the clocks.

Introduce an intermediate probing function, so that factor clocks will be able
to directly be called by CLK_OF_DECLARE, which will in turn ease the split into
several files.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
drivers/clk/sunxi/clk-factors.c
drivers/clk/sunxi/clk-factors.h
drivers/clk/sunxi/clk-sunxi.c
This page took 0.024344 seconds and 5 git commands to generate.