]> git.baikalelectronics.ru Git - kernel.git/commit
clk: add common of_clk_init() function
authorPrashant Gaikwad <pgaikwad@nvidia.com>
Fri, 4 Jan 2013 07:00:52 +0000 (12:30 +0530)
committerMike Turquette <mturquette@linaro.org>
Thu, 24 Jan 2013 19:09:28 +0000 (11:09 -0800)
commitc36f8a90f10cc604b21ea6592e64de6568d96f19
treeb0ffefa1b14c1c9a0435adbd81753cca9b6fed97
parente3c1f07bf2a15efe6d5e6cffd69a220813b6684e
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>
drivers/clk/clk-fixed-rate.c
drivers/clk/clk.c
include/asm-generic/vmlinux.lds.h
include/linux/clk-provider.h