mirror of https://gitee.com/openkylin/linux.git
mmc: TMIO: Ensure MFD cell is disabled on probe error path
Signed-off-by: Ian Molton <ian.molton@codethink.co.uk> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
2dbf1dc305
commit
25db67e2ce
|
@ -85,8 +85,10 @@ static int tmio_mmc_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
if (!res)
|
if (!res) {
|
||||||
return -EINVAL;
|
ret = -EINVAL;
|
||||||
|
goto cell_disable;
|
||||||
|
}
|
||||||
|
|
||||||
pdata->flags |= TMIO_MMC_HAVE_HIGH_REG;
|
pdata->flags |= TMIO_MMC_HAVE_HIGH_REG;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue