9
0
Fork 0

i.MX: esdhc: Enable host->clk during initialization

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Andrey Smirnov 2017-01-10 07:08:54 -08:00 committed by Sascha Hauer
parent dcedcec375
commit a97345102e
1 changed files with 7 additions and 0 deletions

View File

@ -631,6 +631,13 @@ static int fsl_esdhc_probe(struct device_d *dev)
if (IS_ERR(host->clk))
return PTR_ERR(host->clk);
ret = clk_enable(host->clk);
if (ret) {
dev_err(dev, "Failed to enable clock: %s\n",
strerror(ret));
return ret;
}
host->dev = dev;
iores = dev_request_mem_resource(dev, 0);
if (IS_ERR(iores))