From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cGUx0-0005Ez-2O for barebox@lists.infradead.org; Mon, 12 Dec 2016 18:03:46 +0000 Received: by mail-pf0-x241.google.com with SMTP id y68so4710019pfb.1 for ; Mon, 12 Dec 2016 10:03:25 -0800 (PST) From: Andrey Smirnov Date: Mon, 12 Dec 2016 10:02:48 -0800 Message-Id: <1481565788-9115-2-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1481565788-9115-1-git-send-email-andrew.smirnov@gmail.com> References: <1481565788-9115-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 v2 01/21] 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