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

Commit 2328ceae authored by Jingoo Han's avatar Jingoo Han Committed by Greg Kroah-Hartman
Browse files

USB: s3c-hsotg: return proper error if clk_get fails



Return PTR_ERR(hsotg->clk) instead of -EINVAL if clk_get fails

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 66e5c643
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3318,7 +3318,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
	hsotg->clk = clk_get(&pdev->dev, "otg");
	if (IS_ERR(hsotg->clk)) {
		dev_err(dev, "cannot get otg clock\n");
		ret = -EINVAL;
		ret = PTR_ERR(hsotg->clk);
		goto err_mem;
	}