As we move to Common clk framework use clk_prepare_enable()
instead of clk_enable() and similarly clk_disable_unprepare()
instead of clk_disable()

Signed-off-by: Rajendra Nayak <[email protected]>
Cc: Samuel Ortiz <[email protected]>
---
 drivers/mfd/omap-usb-host.c |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 7e96bb2..d70d2fe 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -438,18 +438,18 @@ static int usbhs_runtime_resume(struct device *dev)
        spin_lock_irqsave(&omap->lock, flags);
 
        if (omap->ehci_logic_fck && !IS_ERR(omap->ehci_logic_fck))
-               clk_enable(omap->ehci_logic_fck);
+               clk_prepare_enable(omap->ehci_logic_fck);
 
        if (is_ehci_tll_mode(pdata->port_mode[0])) {
-               clk_enable(omap->usbhost_p1_fck);
-               clk_enable(omap->usbtll_p1_fck);
+               clk_prepare_enable(omap->usbhost_p1_fck);
+               clk_prepare_enable(omap->usbtll_p1_fck);
        }
        if (is_ehci_tll_mode(pdata->port_mode[1])) {
-               clk_enable(omap->usbhost_p2_fck);
-               clk_enable(omap->usbtll_p2_fck);
+               clk_prepare_enable(omap->usbhost_p2_fck);
+               clk_prepare_enable(omap->usbtll_p2_fck);
        }
-       clk_enable(omap->utmi_p1_fck);
-       clk_enable(omap->utmi_p2_fck);
+       clk_prepare_enable(omap->utmi_p1_fck);
+       clk_prepare_enable(omap->utmi_p2_fck);
 
        spin_unlock_irqrestore(&omap->lock, flags);
 
@@ -472,18 +472,18 @@ static int usbhs_runtime_suspend(struct device *dev)
        spin_lock_irqsave(&omap->lock, flags);
 
        if (is_ehci_tll_mode(pdata->port_mode[0])) {
-               clk_disable(omap->usbhost_p1_fck);
-               clk_disable(omap->usbtll_p1_fck);
+               clk_disable_unprepare(omap->usbhost_p1_fck);
+               clk_disable_unprepare(omap->usbtll_p1_fck);
        }
        if (is_ehci_tll_mode(pdata->port_mode[1])) {
-               clk_disable(omap->usbhost_p2_fck);
-               clk_disable(omap->usbtll_p2_fck);
+               clk_disable_unprepare(omap->usbhost_p2_fck);
+               clk_disable_unprepare(omap->usbtll_p2_fck);
        }
-       clk_disable(omap->utmi_p2_fck);
-       clk_disable(omap->utmi_p1_fck);
+       clk_disable_unprepare(omap->utmi_p2_fck);
+       clk_disable_unprepare(omap->utmi_p1_fck);
 
        if (omap->ehci_logic_fck && !IS_ERR(omap->ehci_logic_fck))
-               clk_disable(omap->ehci_logic_fck);
+               clk_disable_unprepare(omap->ehci_logic_fck);
 
        spin_unlock_irqrestore(&omap->lock, flags);
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to