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:
parent
dcedcec375
commit
a97345102e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue