clk: gpio: Make into a platform driver
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 3 Feb 2016 01:09:26 +0000 (17:09 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Sun, 7 Feb 2016 07:38:20 +0000 (23:38 -0800)
commit14b04f28a0a1a5903221fc55c61d231b76abd440
tree58cf95d278d0531c9fbf90d2beb5c1f8ce5fcbb1
parent4106a3d9ebb9839a8e93b0116c0f94dc4f10e4b2
clk: gpio: Make into a platform driver

clk_get() for DT based clks already returns EPROBE_DEFER when the
OF clk provider is not present. So having all this code in the
clk provider to return EPROBE_DEFER when the gpio isn't ready yet
can be replaced with a platform driver that doesn't add the clk
provider until the gpio can be requested. Get rid of the
OF_CLK_DECLARE and convert this to a platform driver instead.

Tested-by: Jyri Sarha <jsarha@ti.com>
Cc: Sergej Sawazki <ce3a@gmx.de>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Jon Nettleton <jon@solid-run.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-gpio.c