aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2011-01-13 08:53:17 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-22 21:48:08 -0500
commit3bb8029a2445e289efade6133b01545143336f70 (patch)
tree8502898e82b76aed9e336fa07d7042cccfd1b348 /drivers/usb
parent96a3e79edff6f41b0f115a82f1a39d66218077a7 (diff)
USB: unbreak ehci-mxc on otg port of i.MX27
commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support for i.MX51 but broke it for (at least) i.MX27 which doesn't have a usb_phy1 clock but has a pdev->id 0. Signed-off-by: Eric Bénard <eric@eukrea.com> Cc: Arnaud Patard <arnaud.patard@rtp-net.org> Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-mxc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index fa59b26fc5bc..d443fbd8535b 100644
--- a/drivers/usb/host/ehci-mxc.c
+++ b/drivers/usb/host/ehci-mxc.c
@@ -177,8 +177,8 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
177 clk_enable(priv->ahbclk); 177 clk_enable(priv->ahbclk);
178 } 178 }
179 179
180 /* "dr" device has its own clock */ 180 /* "dr" device has its own clock on i.MX51 */
181 if (pdev->id == 0) { 181 if (cpu_is_mx51() && (pdev->id == 0)) {
182 priv->phy1clk = clk_get(dev, "usb_phy1"); 182 priv->phy1clk = clk_get(dev, "usb_phy1");
183 if (IS_ERR(priv->phy1clk)) { 183 if (IS_ERR(priv->phy1clk)) {
184 ret = PTR_ERR(priv->phy1clk); 184 ret = PTR_ERR(priv->phy1clk);