Commit 7d6203af authored by Wei Yongjun's avatar Wei Yongjun Committed by Tejun Heo

ahci: imx: fix the error handling in imx_ahci_probe()

Release alloced resources instead of direct return from
imx_ahci_probe() in the error handling case.

Fixes: 4a23d179 ('ahci: imx: Add i.MX53 support')
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarMarek Vasut <marex@denx.de>
parent ee4e5a9a
...@@ -331,7 +331,8 @@ static int imx_ahci_probe(struct platform_device *pdev) ...@@ -331,7 +331,8 @@ static int imx_ahci_probe(struct platform_device *pdev)
if (IS_ERR(imxpriv->gpr)) { if (IS_ERR(imxpriv->gpr)) {
dev_err(dev, dev_err(dev,
"failed to find fsl,imx6q-iomux-gpr regmap\n"); "failed to find fsl,imx6q-iomux-gpr regmap\n");
return PTR_ERR(imxpriv->gpr); ret = PTR_ERR(imxpriv->gpr);
goto err_out;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment