}
exynos_ohci->hcd = hcd;
- exynos_ohci->clk = clk_get(&pdev->dev, "usbhost");
+ exynos_ohci->clk = devm_clk_get(&pdev->dev, "usbhost");
if (IS_ERR(exynos_ohci->clk)) {
dev_err(&pdev->dev, "Failed to get usbhost clock\n");
err = clk_prepare_enable(exynos_ohci->clk);
if (err)
- goto fail_clken;
+ goto fail_clk;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
fail_io:
clk_disable_unprepare(exynos_ohci->clk);
-fail_clken:
- clk_put(exynos_ohci->clk);
fail_clk:
usb_put_hcd(hcd);
return err;
pdata->phy_exit(pdev, S5P_USB_PHY_HOST);
clk_disable_unprepare(exynos_ohci->clk);
- clk_put(exynos_ohci->clk);
usb_put_hcd(hcd);