diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2013-01-04 08:00:52 +0100 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-01-24 20:09:28 +0100 |
commit | f2f6c2556dcc432e50003bc8fa4d62d95906f149 (patch) | |
tree | b0ffefa1b14c1c9a0435adbd81753cca9b6fed97 /drivers/clocksource/sunxi_timer.c | |
parent | clk: Deduplicate exit code in clk_set_rate (diff) | |
download | linux-f2f6c2556dcc432e50003bc8fa4d62d95906f149.tar.xz linux-f2f6c2556dcc432e50003bc8fa4d62d95906f149.zip |
clk: add common of_clk_init() function
Modify of_clk_init function so that it will determine which
driver to initialize based on device tree instead of each driver
registering to it.
Based on a similar patch for drivers/irqchip by Thomas Petazzoni and
drivers/clocksource by Stephen Warren.
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Tony Prisk <linux@prisktech.co.nz>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: Josh Cartwright <josh.cartwright@ni.com>
Reviewed-by: Josh Cartwright <josh.cartwright@ni.com>
Acked-by: Maxime Ripard <maxime.ripard@anandra.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: merge conflict from missing CLKSRC_OF_TABLES()]
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clocksource/sunxi_timer.c')
0 files changed, 0 insertions, 0 deletions