From a97345102e9c438b846023b9fc6a8e834c87ea7b Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 10 Jan 2017 07:08:54 -0800 Subject: i.MX: esdhc: Enable host->clk during initialization Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- drivers/mci/imx-esdhc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/mci') 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)) -- cgit v1.2.3