diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2010-02-17 17:09:30 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-19 18:22:17 -0500 |
commit | bfc110ee653724577e635e0feacf29aad4ed6c7f (patch) | |
tree | e4dab38de03230c49592882628bbfdcd1ac842bf /arch/arm/mach-omap2/usb-musb.c | |
parent | 68499cc5716bbeca16ca8c83ec6e9f04b8dbfacb (diff) |
arm: omap: musb: we can use clk framework
... in order to handle musb's clock. Let's start
removing the old musb-only set_clock function.
Cc: linux-usb@vger.kernel.org
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/usb-musb.c')
-rw-r--r-- | arch/arm/mach-omap2/usb-musb.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 7e2ee01dcd5a..c7d98a924df3 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -47,27 +47,6 @@ static struct resource musb_resources[] = { | |||
47 | }, | 47 | }, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static int clk_on; | ||
51 | |||
52 | static int musb_set_clock(struct clk *clk, int state) | ||
53 | { | ||
54 | if (state) { | ||
55 | if (clk_on > 0) | ||
56 | return -ENODEV; | ||
57 | |||
58 | clk_enable(clk); | ||
59 | clk_on = 1; | ||
60 | } else { | ||
61 | if (clk_on == 0) | ||
62 | return -ENODEV; | ||
63 | |||
64 | clk_disable(clk); | ||
65 | clk_on = 0; | ||
66 | } | ||
67 | |||
68 | return 0; | ||
69 | } | ||
70 | |||
71 | static struct musb_hdrc_config musb_config = { | 50 | static struct musb_hdrc_config musb_config = { |
72 | .multipoint = 1, | 51 | .multipoint = 1, |
73 | .dyn_fifo = 1, | 52 | .dyn_fifo = 1, |
@@ -88,7 +67,6 @@ static struct musb_hdrc_platform_data musb_plat = { | |||
88 | .mode = MUSB_PERIPHERAL, | 67 | .mode = MUSB_PERIPHERAL, |
89 | #endif | 68 | #endif |
90 | /* .clock is set dynamically */ | 69 | /* .clock is set dynamically */ |
91 | .set_clock = musb_set_clock, | ||
92 | .config = &musb_config, | 70 | .config = &musb_config, |
93 | 71 | ||
94 | /* REVISIT charge pump on TWL4030 can supply up to | 72 | /* REVISIT charge pump on TWL4030 can supply up to |