Message ID | 6705a681118488ea905a5d3c29266683bf1a8a6c.1540970653.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 72A7B14E2 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 Oct 2018 08:33:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59C662A10D for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 Oct 2018 08:33:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47F832A120; Wed, 31 Oct 2018 08:33:27 +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 6141E2A10D for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 Oct 2018 08:33:25 +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=6GbZnwahHJBJImj5vNaEytfIqlkxnNgBKwJLAL8Klgo=; b=DBarDNKvcbqInW 80pVqU+nSnf1rNFApqPaJTg0/wX5cQQ4x524nnWMxJTi+l9jE6WnztxbGm7rAyq597dGJLZqF19TM 9pz3yEUYkb98JoESWVPA2PP/rc33IuHTxPIZZSK09eHNEFIoChVXq+D9oehqd8atr+JjJ5Lb5R1gl DgH+m1nT3QQjGoFbx3Xia1KJicN05K4toSOo+caM8ow2UoEQbBWApjny+w1OJnqllwLrBdFgH2jc8 jCAZIghy2A9AO6/YqDnrPiIcB65AIldeaMnTwfb+niyd7K7AfJY1dSnq/EojJvQfWZsU0z+Xizi7+ 6cfL956oAeRWpHbrvE8A==; 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 1gHlwK-0007UY-Na; Wed, 31 Oct 2018 08:33:24 +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 1gHlwH-0007So-86 for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 08:33:22 +0000 Received: by mail-lf1-f68.google.com with SMTP id c16so10964145lfj.8 for <linux-arm-kernel@lists.infradead.org>; Wed, 31 Oct 2018 01:33:10 -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=KJKi78f3BmTlbgbFoV5YXjiBkX7wj5R8W+WOr3C0zec=; b=PfsL651tMACYBbQneekQE11ULXiXOTQ1pRo5nMsOKUzqVZoIudvSQJogA+lXF6enkX LpQIovBQFQ8pzkp9M/1gA4LFAnt2fKONSWAXig7ZOXu8vN7MZoN8Hx/Y655Vrzrulmk6 iASJSCN01cooSrhPbplCwQM4R6QW5+uztA3ZHXA6XaqZO1bIIAm3XemvA2vAn6g78sV0 +jBvsWt5AWuK04MEPbtCgDa3vC1u7DL7809O0v9oXAt3di87jPI+gfgSABlvncu9QV42 xW/9f49mpmz6bDIwyvoufnCk7t86Yw1+0HPiplbQ7eapcNlGEwR/Wma7xwtQf5X89qdK 9Arg== X-Gm-Message-State: AGRZ1gJ4p5ofcbojEAOy3ROd2j6J9E8j018Y01nCxwD192u2PogZTqyQ CCo8iL/ki8fUy0ygEQQIYhg= X-Google-Smtp-Source: AJdET5dHivoOLmVKefTpysoQURcCgOEhVWg1eeqESIZmDlGxkWhU0I+qiaE5vSusHGnwfZ/HweN1rA== X-Received: by 2002:a19:cec8:: with SMTP id e191mr1196583lfg.13.1540974789281; Wed, 31 Oct 2018 01:33:09 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id p134-v6sm4397709lfd.80.2018.10.31.01.33.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 01:33:08 -0700 (PDT) Date: Wed, 31 Oct 2018 10:32:56 +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 5/8] clk: clk-hi655x: Free of_provider at remove Message-ID: <6705a681118488ea905a5d3c29266683bf1a8a6c.1540970653.git.matti.vaittinen@fi.rohmeurope.com> References: <cover.1540970653.git.matti.vaittinen@fi.rohmeurope.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <cover.1540970653.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-20181031_013321_288631_459E45E4 X-CRM114-Status: GOOD ( 15.24 ) 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/clk-hi655x.c b/drivers/clk/clk-hi655x.c index 403a0188634a..394d0109104d 100644 --- a/drivers/clk/clk-hi655x.c +++ b/drivers/clk/clk-hi655x.c @@ -107,8 +107,8 @@ static int hi655x_clk_probe(struct platform_device *pdev) if (ret) return ret; - return of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get, - &hi655x_clk->clk_hw); + return devm_of_clk_add_parent_hw_provider(&pdev->dev, + of_clk_hw_simple_get, &hi655x_clk->clk_hw); } static struct platform_driver hi655x_clk_driver = {
use devm variant for of_provider registration so provider is freed at exit. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> --- drivers/clk/clk-hi655x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)