Commit bfc110ee authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

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: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 68499cc5
...@@ -47,27 +47,6 @@ static struct resource musb_resources[] = { ...@@ -47,27 +47,6 @@ static struct resource musb_resources[] = {
}, },
}; };
static int clk_on;
static int musb_set_clock(struct clk *clk, int state)
{
if (state) {
if (clk_on > 0)
return -ENODEV;
clk_enable(clk);
clk_on = 1;
} else {
if (clk_on == 0)
return -ENODEV;
clk_disable(clk);
clk_on = 0;
}
return 0;
}
static struct musb_hdrc_config musb_config = { static struct musb_hdrc_config musb_config = {
.multipoint = 1, .multipoint = 1,
.dyn_fifo = 1, .dyn_fifo = 1,
...@@ -88,7 +67,6 @@ static struct musb_hdrc_platform_data musb_plat = { ...@@ -88,7 +67,6 @@ static struct musb_hdrc_platform_data musb_plat = {
.mode = MUSB_PERIPHERAL, .mode = MUSB_PERIPHERAL,
#endif #endif
/* .clock is set dynamically */ /* .clock is set dynamically */
.set_clock = musb_set_clock,
.config = &musb_config, .config = &musb_config,
/* REVISIT charge pump on TWL4030 can supply up to /* REVISIT charge pump on TWL4030 can supply up to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment