Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939656AbdD1NEN (ORCPT ); Fri, 28 Apr 2017 09:04:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33131 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936069AbdD1NEH (ORCPT ); Fri, 28 Apr 2017 09:04:07 -0400 From: Arvind Yadav To: mturquette@baylibre.com, sboyd@codeaurora.org Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] clk: palmas: undo preparation of a clock source. Date: Fri, 28 Apr 2017 18:33:07 +0530 Message-Id: <1493384587-32659-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 642 Lines: 22 Undo preparation of a clock source, if palmas_clks_init_configure is not successful. Signed-off-by: Arvind Yadav --- drivers/clk/clk-palmas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-palmas.c b/drivers/clk/clk-palmas.c index 31f590c..7f51c01 100644 --- a/drivers/clk/clk-palmas.c +++ b/drivers/clk/clk-palmas.c @@ -229,6 +229,7 @@ static int palmas_clks_init_configure(struct palmas_clock_info *cinfo) if (ret < 0) { dev_err(cinfo->dev, "Ext config for %s failed, %d\n", cinfo->clk_desc->clk_name, ret); + clk_unprepare(cinfo->hw.clk); return ret; } } -- 1.9.1