]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mxs: replace imx28 clk_register_clkdev with clock DT lookup
authorShawn Guo <shawn.guo@linaro.org>
Wed, 22 Aug 2012 13:36:29 +0000 (21:36 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 11 Sep 2012 06:45:46 +0000 (14:45 +0800)
commita831d18c5953f53f7c50b621a79c169387a6b3f4
tree14c189edc3600233d360a9a093d4edc44b3a6b3d
parentfda35807a354d6cbc7b7cb901034e8697c0fdc96
clk: mxs: replace imx28 clk_register_clkdev with clock DT lookup

It really becomes a maintenance issue that every time a device needs
to look up (clk_get) a clock we have to patch kernel clock file to call
clk_register_clkdev for that clock.

Since clock DT support which is meant to resolve clock lookup in device
tree is in place, the patch moves imx28 client devices' clock lookup
over to device tree, so that any new lookup to be added at later time
can just get done in DT instead of kernel.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Documentation/devicetree/bindings/clock/imx28-clock.txt [new file with mode: 0644]
arch/arm/boot/dts/imx28.dtsi
drivers/clk/mxs/clk-imx28.c