Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
- index 25c8c10..9ea2d46 100644
- --- a/drivers/usb/host/ehci-mxc.c
- +++ b/drivers/usb/host/ehci-mxc.c
- @@ -172,13 +172,14 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
- }
- clk_enable(priv->usbclk);
- - if (!cpu_is_mx35() && !cpu_is_mx25()) {
- - priv->ahbclk = clk_get(dev, "usb_ahb");
- - if (IS_ERR(priv->ahbclk)) {
- - ret = PTR_ERR(priv->ahbclk);
- - goto err_clk_ahb;
- - }
- + priv->ahbclk = clk_get(dev, "usb_ahb");
- + if (!IS_ERR(priv->ahbclk))
- clk_enable(priv->ahbclk);
- + else if (priv->ahbclk == ERR_PTR(-ENOENT))
- + priv->ahbclk = NULL;
- + else {
- + ret = PTR_ERR(priv->ahbclk);
- + goto err_clk_ahb;
- }
- /* "dr" device has its own clock on i.MX51 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement