From patchwork Fri Apr 28 13:03:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9704629 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B00BF60225 for ; Fri, 28 Apr 2017 13:04:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A201728683 for ; Fri, 28 Apr 2017 13:04:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9662928687; Fri, 28 Apr 2017 13:04:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 450B328683 for ; Fri, 28 Apr 2017 13:04:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939060AbdD1NEI (ORCPT ); Fri, 28 Apr 2017 09:04:08 -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 Received: by mail-pf0-f195.google.com with SMTP id b23so1486420pfc.0; Fri, 28 Apr 2017 06:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=t94MTVY4387xvC2O62htWgJXdAuIdOvEVvWsz9+Y2x8=; b=U1YGxNaMCeqUhpB6lszOotbv7Dg7SsmZR4LG2ItKhakxhyWWQ7BQhSEXH9EFjBY9+1 FPQ0dF6CJM0yAsBuPR3MFgWtd9JVP7GMvK31BkCJFtxMGR/WKPJbfky5d8+zzd8rPMeE RfCPHx7V4Mel84pVMmJOgjLXh+w3GPxLyp5wmuCYd+aU8aIcSO4exMBm1vWKPeCgxLkZ I+22OBJWupvpt4zsX5RMng60MRLJLUeBo0f13YQUKVlD/UHs1KfD3Lp+L4Jh4V0HrHZZ O+aKnIWqfheqwkSjBLQDj3gb/pPLxtUjMGV6OPG3mpmG31/OqT7rQY86CYE7HnLPFz7C uBGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=t94MTVY4387xvC2O62htWgJXdAuIdOvEVvWsz9+Y2x8=; b=LDiXfjpBqMvVCXzzCSmKEpqi/zOvXKpCORQsKwv7B3k642IgnahwbK1nJXuAyoDvVr dPvt7d1a4ahHExL+dM0y89agQ4wNe2/x4tZiMNC3n2yaOkjaQC2cV5+GhTWnxpPGkcip 6gS9jK+pyvSK6Gxm7XEDOzRObRVyjt/JdL8MzpNUuvCW+VBo8qYOcQWeSotqxXKPYueM 0IvC515lUSi9okV8epOnLt8N4+XgDm5wb3Imh8yy+salYbzf5g8EKNt1CNxPcjiBODqL VAP+YdWJDsGCqHc5acVHphlAmqesVpFmgKdozdHikNM8PLRPvz4wYCryQPyBhZvP5WzY STcg== X-Gm-Message-State: AN3rC/4fuQkuEXstY/wxu6q2Z+G5+XGAifYcgEMUse8womOa0V4UPJAA +By+p32po1en7qAF X-Received: by 10.98.211.18 with SMTP id q18mr11636923pfg.97.1493384646618; Fri, 28 Apr 2017 06:04:06 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id d83sm11330565pfe.40.2017.04.28.06.04.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Apr 2017 06:04:05 -0700 (PDT) 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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; } }