From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cDufy-0005N0-Ky for barebox@lists.infradead.org; Mon, 05 Dec 2016 14:55:31 +0000 Received: by mail-pg0-x243.google.com with SMTP id p66so16675176pga.2 for ; Mon, 05 Dec 2016 06:55:09 -0800 (PST) From: Andrey Smirnov Date: Mon, 5 Dec 2016 06:54:29 -0800 Message-Id: <1480949684-18520-2-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1480949684-18520-1-git-send-email-andrew.smirnov@gmail.com> References: <1480949684-18520-1-git-send-email-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 01/16] i.MX: esdhc: Enable host->clk during initialization To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- drivers/mci/imx-esdhc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c index d72e3f8..40a086b 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)) -- 2.5.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox