提交 25db67e2 编写于 作者: I Ian Molton 提交者: Ulf Hansson

mmc: TMIO: Ensure MFD cell is disabled on probe error path

Signed-off-by: NIan Molton <ian.molton@codethink.co.uk>
Signed-off-by: NBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 2dbf1dc3
......@@ -85,8 +85,10 @@ static int tmio_mmc_probe(struct platform_device *pdev)
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)
return -EINVAL;
if (!res) {
ret = -EINVAL;
goto cell_disable;
}
pdata->flags |= TMIO_MMC_HAVE_HIGH_REG;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册