Message ID | 5f79250d8055016b3a3c815e478ece889b8f80d2.1541161503.git.matti.vaittinen@fi.rohmeurope.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 C087214E2 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Nov 2018 12:36:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6EF72B3C8 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Nov 2018 12:36:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 952BA2B3D8; Fri, 2 Nov 2018 12:36:54 +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 4C7132B3C8 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Nov 2018 12:36:54 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YX7Qq+bZ3x2DU+p/Er8NbB7nz53k+0Ud/2ekuIcEckM=; b=JOczF+blgD2fio 7YKnm8J7WmTutUvt942MH7DIUJ0ZaC8Kndm2+ocqWjukWn4v5wUpGiXSatJTJ3/h3+gJzaUiR9+8e 9sf04BgR01AffIkyLMt1GaTOUGDsvtTS7PZYE7eAspjRWi8sW0AiX/a9wxKw05u6Mwo9j6kPUzO3M Z7iHaDSwFFFT4HFaylGXhCdqtMMGw8DIUvCZ1lEH+1s/fOFAwCj0y8HDn6QVU2qWWKWS4Q0xjqlWo KxDH4PGWWcvISUZuOw0IG5V5Y7vcJN+/aH+p0LNP31EHF6Vz3yA4ZC/NOs3VJR1IpG3WcK9QgNkCH P/d8m+IuLPguX7Rm2t0w==; 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 1gIYh1-0000Lr-KW; Fri, 02 Nov 2018 12:36:51 +0000 Received: from mail-lf1-f68.google.com ([209.85.167.68]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIYgu-0000HC-Tk for linux-arm-kernel@lists.infradead.org; Fri, 02 Nov 2018 12:36:49 +0000 Received: by mail-lf1-f68.google.com with SMTP id o2-v6so1204449lfl.13 for <linux-arm-kernel@lists.infradead.org>; Fri, 02 Nov 2018 05:36:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XHBuXIz+/k/o9sHwadx6Xj4e5igjCAket6IT5Fa5bu0=; b=bJeaWu3yDLUicEd0dSkKgIajOIiUxX0Fj7O9X0oZJ+DK+SqojinEu5vOKOi5VQdECh W4yhi/gbGlTEsqX8+5MHijMZfv91tpYmgnaQCikRPT33tEOqGiBye20bt2d13D/o1VNB PULHkC25H7movYtzGQUnV2eL7hltBX3S2zqi5nC7Qp2e+7gxfVcyHJksf6ew0VoppNX+ T8NGAlFfoP1H4h8Q+xyF+82PlWBu88h1Uht9vxrxp/XcIdo2zHeCK4BMHNdQaoblMDFV b+dbzwjF/UvQTKQtbkGhT/Srs7q5gjg5H/7C8We87FoKTutZhT9qYvq1e6G3LQ+Mzi3D NFNw== X-Gm-Message-State: AGRZ1gJAEdxLczmOZvhTMIQSzpzXAbQieXg5DjocCxH4zYOCNMiKa35E yrlWG5l6MT7VUE2f+Ghevuk= X-Google-Smtp-Source: AJdET5f98WmhOgjNCCnLbQqOo8CLgXCsjGIuZLUhIOODJZO3xhN5eWHpj2rx7Fh8LSIu5G+mG87uzw== X-Received: by 2002:a19:d04f:: with SMTP id h76mr6541421lfg.52.1541162193044; Fri, 02 Nov 2018 05:36:33 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id t77-v6sm5708146lfi.63.2018.11.02.05.36.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Nov 2018 05:36:32 -0700 (PDT) Date: Fri, 2 Nov 2018 14:36:20 +0200 From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> To: Jonathan Corbet <corbet@lwn.net>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Chanwoo Choi <cw00.choi@samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Russell King <linux@armlinux.org.uk>, Andy Gross <andy.gross@linaro.org>, David Brown <david.brown@linaro.org>, Kukjin Kim <kgene@kernel.org>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Tomasz Figa <tomasz.figa@gmail.com>, Andrey Smirnov <andrew.smirnov@gmail.com>, Sebastian Reichel <sre@kernel.org>, Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>, Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>, Huang Shijie <sjhuang@iluvatar.ai>, Akshu Agrawal <Akshu.Agrawal@amd.com>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, Daniel Kurtz <djkurtz@chromium.org>, mazziesaccount@gmail.com Subject: [PATCH v3 3/7] clk: clk-st: avoid clkdev lookup leak at remove Message-ID: <5f79250d8055016b3a3c815e478ece889b8f80d2.1541161503.git.matti.vaittinen@fi.rohmeurope.com> References: <cover.1541161503.git.matti.vaittinen@fi.rohmeurope.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <cover.1541161503.git.matti.vaittinen@fi.rohmeurope.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181102_053645_036341_4F87B68F X-CRM114-Status: GOOD ( 15.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-samsung-soc@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, matti.vaittinen@fi.rohmeurope.com, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
clk: clkdev: managed clk lookup and provider registrations
|
expand
|
diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-st.c index fb62f3938008..32d8df9bd853 100644 --- a/drivers/clk/x86/clk-st.c +++ b/drivers/clk/x86/clk-st.c @@ -52,7 +52,8 @@ static int st_clk_probe(struct platform_device *pdev) 0, st_data->base + MISCCLKCNTL1, OSCCLKENB, CLK_GATE_SET_TO_DISABLE, NULL); - clk_hw_register_clkdev(hws[ST_CLK_GATE], "oscout1", NULL); + devm_clk_hw_register_clkdev(&pdev->dev, hws[ST_CLK_GATE], "oscout1", + NULL); return 0; }
Use devm based clkdev lookup registration to avoid leaking lookup structures. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> --- drivers/clk/x86/clk-st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)