summaryrefslogtreecommitdiffstats
path: root/drivers/mci/imx-esdhc.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-01-10 07:08:54 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-12 07:40:00 +0100
commita97345102e9c438b846023b9fc6a8e834c87ea7b (patch)
treeb84696a0cae8117d88c0321841d83e3119074d00 /drivers/mci/imx-esdhc.c
parentdcedcec3751d3307e42b2a6583186b2a39f2076d (diff)
downloadbarebox-a97345102e9c438b846023b9fc6a8e834c87ea7b.tar.gz
barebox-a97345102e9c438b846023b9fc6a8e834c87ea7b.tar.xz
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>
Diffstat (limited to 'drivers/mci/imx-esdhc.c')
-rw-r--r--drivers/mci/imx-esdhc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c
index 951ac4501b..ad749d9a30 100644
--- a/drivers/mci/imx-esdhc.c
+++ b/drivers/mci/imx-esdhc.c
@@ -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))