Message ID | 4948a0a312c7b7b4149376d1b6eff26c99d29ccf.1542107769.git.matti.vaittinen@fi.rohmeurope.com (mailing list archive) |
---|---|
State | New, 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 149DE139B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:00:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0043E29FB6 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:00:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E840229FBF; Tue, 13 Nov 2018 12:00:49 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 93B5C29FB6 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:00:49 +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=/QpH8HecrNR1pLzLREtiGkpldbGFuuAbIQrkjJyF/58=; b=jHO2etxkjsbEFX CM769ihkcNKR2fwPUdKaHIGALYhNaW3P8+22svJ3oN1AHHnA4hf4X62HhEPLxddL9gy7zFY1eRU1d 6x6z0koHeGbEaCmG3Wa015Bv6p1qyz+x0VQToJ5a1/qMDwb1ErcyIqIH9z3gLoRP1zi3k2ZzdcrdN SUpB8B0vPc8nmYnaw0IHhiJ5ExvIGpanXrpGyqWObUB9ygEADBzRuzKtlLEZAWO/48QNS3u0VTZUy mAMGeZjr548iBOp5lnJvtjg2b1Dt3Q1Of0bVmdAeclEIcgD3s99CUuGa1ruXBYK7sGLtpRmdTCrfj DA/L2yMVCvExPbepvJOg==; 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 1gMXNB-0005UL-3O; Tue, 13 Nov 2018 12:00:49 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMXN9-0005UD-Sn for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 12:00:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GkHc1XDfS2zAEG1O6tNrzFVGgOycf/0Y3wU3cQalzu0=; b=XLHiDjUF0ESs8/6c72XZvF9Ni f63dajySXuRlq2OeQUSawVHTQ7pJ1+DP84VywanRg9Lf8CP7Bfm5FQUOhdFub9iLA/3PO8df7DW0J BwzWgh4lbtFL+8ivTmOAhBkZG/Ja6pDzOv+0aQ4TucAzNDcZKH47frV3/Wcz+WnCpOqC8y1rw0NZm nANwBjqii9QdGXuubHjUEslzEsMPhslunsBTPUNWgf7BIk1ySx3zFqZdBsewzAGhp+sP9+jnd1Sbb I3ncUH789Hwr5DfP1q4SeU89soFu0VrwypdaqgEFyMNYhHfYLOUEGrtMe77X0m7Gi2/c5iu2UhYtY vAXJ+RzoQ==; Received: from mail-lf1-f67.google.com ([209.85.167.67]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMXN7-0004Al-DT for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 12:00:46 +0000 Received: by mail-lf1-f67.google.com with SMTP id n18so8612136lfh.6 for <linux-arm-kernel@lists.infradead.org>; Tue, 13 Nov 2018 04:00:35 -0800 (PST) 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=GkHc1XDfS2zAEG1O6tNrzFVGgOycf/0Y3wU3cQalzu0=; b=ugiawY1NkVB1XTZcC1zVXUOS2dLatGtH4XxJM3f7rpyWjh3Epi/8sWl9guk6gzrVMX 7tG3JQBK10XM0NoxeVmQEq0FgK+hE5VV2wQfvXCrAfBXNkRK8OFk6WCKce8OnkOUbcTX 9T/BRF3p32IxPgkO4exCdNSLSxQqYn09IxIlYYeC6S8wHnQ2RRYHtuQq9uir+Rh1LQRh XwFUmDKyR5NSn+x1poVG0L97vgyOnoxz3WQOVRzCByAzbe3uJrYrNiHO2QAyUXWZOZs1 tpsOajLe24Ao7Y0pPIpVU5bk+zZyJZgUZ8FAmN5i2jim+Oj3nNGcN5fIeURX3Aam+wGO kkNQ== X-Gm-Message-State: AGRZ1gIrkfjwBtQAcc4xOZTkfaBLWm9wIMbI1/6Jg5Y0ahpR7im+JPPE iYlGHTosLLiHozl1W6PtwMc= X-Google-Smtp-Source: AJdET5fOIQiRXuBMYXnLuVnYwmroVFeBZiYR4GD6cOcs23DQeoIaoqxLi7kkCGtpTFX+3+gD23QBTQ== X-Received: by 2002:a19:24c6:: with SMTP id k189mr2921256lfk.77.1542110433382; Tue, 13 Nov 2018 04:00:33 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id p186sm3426622lfd.83.2018.11.13.04.00.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 04:00:32 -0800 (PST) Date: Tue, 13 Nov 2018 14:00:19 +0200 From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> To: mazziesaccount@gmail.com Subject: [PATCH v4 4/8] clk: clk-hi655x: Free of_provider at remove Message-ID: <4948a0a312c7b7b4149376d1b6eff26c99d29ccf.1542107769.git.matti.vaittinen@fi.rohmeurope.com> References: <cover.1542107769.git.matti.vaittinen@fi.rohmeurope.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <cover.1542107769.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-20181113_070045_473186_14427AC6 X-CRM114-Status: GOOD ( 17.88 ) 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-doc@vger.kernel.org, Michael Turquette <mturquette@baylibre.com>, Daniel Kurtz <djkurtz@chromium.org>, Sebastian Reichel <sre@kernel.org>, David Brown <david.brown@linaro.org>, Lee Jones <lee.jones@linaro.org>, linux-clk@vger.kernel.org, Rob Herring <robh@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Andrey Smirnov <andrew.smirnov@gmail.com>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, Russell King <linux@armlinux.org.uk>, Krzysztof Kozlowski <krzk@kernel.org>, Chanwoo Choi <cw00.choi@samsung.com>, Andy Gross <andy.gross@linaro.org>, Huang Shijie <sjhuang@iluvatar.ai>, Guenter Roeck <linux@roeck-us.net>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Boyd <sboyd@kernel.org>, Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>, linux-kernel@vger.kernel.org, Akshu Agrawal <akshu.agrawal@amd.com> 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(-)