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

Commit 1d144c67 authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Felipe Balbi
Browse files

usb:hsotg:samsung: err_irq: support for probe function



Missing handler for freeing requested IRQ added.
Moreover clk_ calls has been reorganized.

Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 04b4a0fc
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -3558,7 +3558,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
				 hsotg->supplies);
	if (ret) {
		dev_err(dev, "failed to request supplies: %d\n", ret);
		goto err_supplies;
		goto err_irq;
	}

	ret = regulator_bulk_enable(ARRAY_SIZE(hsotg->supplies),
@@ -3639,15 +3639,11 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)

err_ep_mem:
	kfree(eps);

err_supplies:
	s3c_hsotg_phy_disable(hsotg);

	regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);

	clk_disable_unprepare(hsotg->clk);
	clk_put(hsotg->clk);

err_irq:
	free_irq(hsotg->irq, hsotg);
err_regs:
	iounmap(hsotg->regs);

@@ -3655,6 +3651,7 @@ err_regs_res:
	release_resource(hsotg->regs_res);
	kfree(hsotg->regs_res);
err_clk:
	clk_disable_unprepare(hsotg->clk);
	clk_put(hsotg->clk);
err_mem:
	kfree(hsotg);