USB: unbreak ehci-mxc on otg port of i.MX27
commit 711669e5b8
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>
This commit is contained in:
parent
96a3e79edf
commit
3bb8029a24
1 changed files with 2 additions and 2 deletions
|
@ -177,8 +177,8 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
|
||||||
clk_enable(priv->ahbclk);
|
clk_enable(priv->ahbclk);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* "dr" device has its own clock */
|
/* "dr" device has its own clock on i.MX51 */
|
||||||
if (pdev->id == 0) {
|
if (cpu_is_mx51() && (pdev->id == 0)) {
|
||||||
priv->phy1clk = clk_get(dev, "usb_phy1");
|
priv->phy1clk = clk_get(dev, "usb_phy1");
|
||||||
if (IS_ERR(priv->phy1clk)) {
|
if (IS_ERR(priv->phy1clk)) {
|
||||||
ret = PTR_ERR(priv->phy1clk);
|
ret = PTR_ERR(priv->phy1clk);
|
||||||
|
|
Loading…
Reference in a new issue