diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 68548236ec42..ab8a3bf628e3 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c | |||
@@ -46,8 +46,8 @@ static void tegra_ehci_power_up(struct usb_hcd *hcd) | |||
46 | { | 46 | { |
47 | struct tegra_ehci_hcd *tegra = dev_get_drvdata(hcd->self.controller); | 47 | struct tegra_ehci_hcd *tegra = dev_get_drvdata(hcd->self.controller); |
48 | 48 | ||
49 | clk_enable(tegra->emc_clk); | 49 | clk_prepare_enable(tegra->emc_clk); |
50 | clk_enable(tegra->clk); | 50 | clk_prepare_enable(tegra->clk); |
51 | tegra_usb_phy_power_on(tegra->phy); | 51 | tegra_usb_phy_power_on(tegra->phy); |
52 | tegra->host_resumed = 1; | 52 | tegra->host_resumed = 1; |
53 | } | 53 | } |
@@ -58,8 +58,8 @@ static void tegra_ehci_power_down(struct usb_hcd *hcd) | |||
58 | 58 | ||
59 | tegra->host_resumed = 0; | 59 | tegra->host_resumed = 0; |
60 | tegra_usb_phy_power_off(tegra->phy); | 60 | tegra_usb_phy_power_off(tegra->phy); |
61 | clk_disable(tegra->clk); | 61 | clk_disable_unprepare(tegra->clk); |
62 | clk_disable(tegra->emc_clk); | 62 | clk_disable_unprepare(tegra->emc_clk); |
63 | } | 63 | } |
64 | 64 | ||
65 | static int tegra_ehci_internal_port_reset( | 65 | static int tegra_ehci_internal_port_reset( |
@@ -671,7 +671,7 @@ static int tegra_ehci_probe(struct platform_device *pdev) | |||
671 | goto fail_clk; | 671 | goto fail_clk; |
672 | } | 672 | } |
673 | 673 | ||
674 | err = clk_enable(tegra->clk); | 674 | err = clk_prepare_enable(tegra->clk); |
675 | if (err) | 675 | if (err) |
676 | goto fail_clken; | 676 | goto fail_clken; |
677 | 677 | ||
@@ -682,7 +682,7 @@ static int tegra_ehci_probe(struct platform_device *pdev) | |||
682 | goto fail_emc_clk; | 682 | goto fail_emc_clk; |
683 | } | 683 | } |
684 | 684 | ||
685 | clk_enable(tegra->emc_clk); | 685 | clk_prepare_enable(tegra->emc_clk); |
686 | clk_set_rate(tegra->emc_clk, 400000000); | 686 | clk_set_rate(tegra->emc_clk, 400000000); |
687 | 687 | ||
688 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 688 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
@@ -782,10 +782,10 @@ fail: | |||
782 | fail_phy: | 782 | fail_phy: |
783 | iounmap(hcd->regs); | 783 | iounmap(hcd->regs); |
784 | fail_io: | 784 | fail_io: |
785 | clk_disable(tegra->emc_clk); | 785 | clk_disable_unprepare(tegra->emc_clk); |
786 | clk_put(tegra->emc_clk); | 786 | clk_put(tegra->emc_clk); |
787 | fail_emc_clk: | 787 | fail_emc_clk: |
788 | clk_disable(tegra->clk); | 788 | clk_disable_unprepare(tegra->clk); |
789 | fail_clken: | 789 | fail_clken: |
790 | clk_put(tegra->clk); | 790 | clk_put(tegra->clk); |
791 | fail_clk: | 791 | fail_clk: |
@@ -820,10 +820,10 @@ static int tegra_ehci_remove(struct platform_device *pdev) | |||
820 | tegra_usb_phy_close(tegra->phy); | 820 | tegra_usb_phy_close(tegra->phy); |
821 | iounmap(hcd->regs); | 821 | iounmap(hcd->regs); |
822 | 822 | ||
823 | clk_disable(tegra->clk); | 823 | clk_disable_unprepare(tegra->clk); |
824 | clk_put(tegra->clk); | 824 | clk_put(tegra->clk); |
825 | 825 | ||
826 | clk_disable(tegra->emc_clk); | 826 | clk_disable_unprepare(tegra->emc_clk); |
827 | clk_put(tegra->emc_clk); | 827 | clk_put(tegra->emc_clk); |
828 | 828 | ||
829 | kfree(tegra); | 829 | kfree(tegra); |