Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5dff554 authored by Anand Gadiyar's avatar Anand Gadiyar
Browse files

usb: ehci-omap: use clkdev aliases for functional clocks



Use the recently updated aliases to get functional clocks needed by
the driver. This allows the driver to acquire OMAP4-specific clocks
without having to use different clock names for OMAP3 and OMAP4.

Signed-off-by: default avatarAnand Gadiyar <gadiyar@ti.com>
parent 5467e16d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -287,14 +287,14 @@ static int omap_start_ehc(struct ehci_hcd_omap *omap, struct usb_hcd *hcd)
	}
	}
	clk_enable(omap->usbhost_ick);
	clk_enable(omap->usbhost_ick);


	omap->usbhost_hs_fck = clk_get(omap->dev, "usbhost_120m_fck");
	omap->usbhost_hs_fck = clk_get(omap->dev, "hs_fck");
	if (IS_ERR(omap->usbhost_hs_fck)) {
	if (IS_ERR(omap->usbhost_hs_fck)) {
		ret = PTR_ERR(omap->usbhost_hs_fck);
		ret = PTR_ERR(omap->usbhost_hs_fck);
		goto err_host_120m_fck;
		goto err_host_120m_fck;
	}
	}
	clk_enable(omap->usbhost_hs_fck);
	clk_enable(omap->usbhost_hs_fck);


	omap->usbhost_fs_fck = clk_get(omap->dev, "usbhost_48m_fck");
	omap->usbhost_fs_fck = clk_get(omap->dev, "fs_fck");
	if (IS_ERR(omap->usbhost_fs_fck)) {
	if (IS_ERR(omap->usbhost_fs_fck)) {
		ret = PTR_ERR(omap->usbhost_fs_fck);
		ret = PTR_ERR(omap->usbhost_fs_fck);
		goto err_host_48m_fck;
		goto err_host_48m_fck;