From patchwork Fri Sep 14 15:34:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 10600967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB0E714DB for ; Fri, 14 Sep 2018 15:35:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F01028A77 for ; Fri, 14 Sep 2018 15:35:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92C5929466; Fri, 14 Sep 2018 15:35: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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2207728A77 for ; Fri, 14 Sep 2018 15:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=iuLKbtFy2gT75qVWBXhbzwx7tsbWDCe7CSd5P/7tJr0=; b=VQl 38uUYQSEB2hFgCK/56FkriCxGRgmwQdEm8kJ7DgmUDoczsqMvi6EKH9ncPSDs/XIW2C/GdZeYv+n3 g6u+NoHJwEBed8xhu4Af1XAX6ATl8G4yGej1xKi2RzpK4ZM3eCFBSDKQXtDS+BI0AMjhR1/k6PuJ2 3SkP+6OXzQE5bKYfNF7UOorOtrB89fwL4DnsuSs643Qn6C8Pjia1Hzq22GbcX3aEOybkM7tWEj80E eDHDcQj3lsYWV+Z8qKZacDKsp2gk25S4Sl1DugtKQDyYPeBGEz1/btgjqzOmQUpFVt8n5/wi/2mNc H6CKFvMGbZx3N60S0W/LoxC9b9eq0Yw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0q7V-000306-3T; Fri, 14 Sep 2018 15:34:57 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0q7R-0002zX-1u for linux-arm-kernel@lists.infradead.org; Fri, 14 Sep 2018 15:34:54 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 5A8EC20701; Fri, 14 Sep 2018 17:34:39 +0200 (CEST) Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id A44D0208F3; Fri, 14 Sep 2018 17:34:24 +0200 (CEST) From: Gregory CLEMENT To: Stephen Boyd , Mike Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: mvebu: armada-37xx-tbg: Balance devm_clk_get in probe Date: Fri, 14 Sep 2018 17:34:21 +0200 Message-Id: <20180914153421.7090-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180914_083453_252887_6C905803 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Jason Cooper , Antoine Tenart , Gregory CLEMENT , Maxime Chevallier , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Rayn?= =?utf-8?q?al?= , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The parent clock is get only to have its name, and then the clock is no more used, so we can safely free it using devm_clk_put. Signed-off-by: Gregory CLEMENT --- drivers/clk/mvebu/armada-37xx-tbg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index 71f30149e80e..caaa91a41683 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -102,6 +102,7 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev) return -EINVAL; } parent_name = __clk_get_name(parent); + devm_clk_put(dev, parent); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); reg = devm_ioremap_resource(dev, res);