Message ID | b737f3ee039b8fb25be358a00d0adac7c4fec6d0.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 CEA6C139B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:01:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B832129FF2 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:01:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A80A729FBF; Tue, 13 Nov 2018 12:01:25 +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 5193229FBF for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:01: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=u4NgRMFJFa0TfBza8StczUhLEE0Y2X4iOZYPVqRRx4A=; b=CXOCb2NESYFtiM 3uB6ytP8Wd3pfSRkbsXVDGYZazaPlSdT+71f/zHcw+A3cl/FaCvBv3bCuOZC6rZ4Kt+kfSsOzIldO xEDNWlBZklCJTL18xQOevaP+x/UpWK4ZK071GkF3wQk7KAvqV4NpaeJ73mCoI7qDIiYnH+21I28oP rFD9Mmwg+a6n8QgIjbKpkMN2gZC9Ixh6K3NctiY0tmOGMtudfRoO47Hy42VcgHX1pNnFSuBWzN+8j h7mG19imeOC14BPKyW0z/j8qAgwihaKtDt9th082GUZz1bsIZtSsdUjmwXj5V7UGTYzJqlc5eKbG0 JNfPOv97fpKQ9Sr4soLg==; 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 1gMXNj-0005pr-9p; Tue, 13 Nov 2018 12:01:23 +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 1gMXNh-0005pZ-LH for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 12:01:21 +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=4b7mWWvbRMSl/BrY6BXSv/3823MeAc6TDJ2DxbTG2QU=; b=2XMlLR2s8sP/SBIjQESf6c2tb fnanWpL6Iq5H5JzWdpKL+iH9H8Mfl4HOgnyLogJp2U1iRru6TIENgahABDf8IX2R05aQ3q8PNeqFE J0NTWKrBR2PePjDatGCHHcNBVDylolsfXl9IlZJRhP8sjhZ63jnaGC7DiEztKFY2EEgPrDk40kpPG neiWU22BeMefNvxkD+Jac4KGkD457nnltHCaR8be1ShKi3yRCyE9XZuYEmvdY0lTzwlUIWbylOL7u F6otyO9O8ZA6QUK+fD3n5Dj0dOjxA6gzKB12CSUWGVAmEYYYmT6m6JGCmTme+IVy8Aia9wro/DdfE hxsU+B3Cw==; Received: from mail-lj1-f194.google.com ([209.85.208.194]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMXNa-0004C1-5Y for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 12:01:19 +0000 Received: by mail-lj1-f194.google.com with SMTP id u6-v6so10583378ljd.1 for <linux-arm-kernel@lists.infradead.org>; Tue, 13 Nov 2018 04:01:03 -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=4b7mWWvbRMSl/BrY6BXSv/3823MeAc6TDJ2DxbTG2QU=; b=PVKshiMHJsQynUNsh4RmUzCuJ616rqPiDHZiY4nOLkLAntoum6qSnhRutcYrXPN5F2 sCVFeAAf8H1i2Gp+vzZEXGhWk45vXDFdOYYHF0MGp3F2RXNAG/Mv0BXDQ1h7D3BvdhYe iUuX9P5AsmBccaobl6ROB/UhiVko1LHXp6yGnqkNtpDPKH5d/jmWS3OmNvs5rL1H7Ib/ gnyyHW5OVTGrqB8bzl0F1ka02KvnB8IaseP9Nw+ifQAnQxAUQeerGi/tHuVI1rAowI6U laXVJ9UZFQ2Y7QLmtBQGm/1gCyGpuJK/HQ4/n6pmQdvZUtr1ZKzivcBgyyy/Ir2Jga58 f8cQ== X-Gm-Message-State: AGRZ1gIQIRvRuS5vsB8IrTIKyLzCSjuHt79HnK/Qk1jrOi+FzqIwAuWm HJEkWYzD83O2fFkEkPlj9CA= X-Google-Smtp-Source: AJdET5ffbiuIZOU9/qFylZpeIpZWfVwNaAtJyzaMhL4O3x6I/l/Phk1LIDh0Gl929CUhQS1HCZMXLw== X-Received: by 2002:a2e:20f:: with SMTP id 15-v6mr3022060ljc.172.1542110462379; Tue, 13 Nov 2018 04:01:02 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id m77sm1777280lfg.3.2018.11.13.04.01.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 04:01:01 -0800 (PST) Date: Tue, 13 Nov 2018 14:00:53 +0200 From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> To: mazziesaccount@gmail.com Subject: [PATCH v4 5/8] clk: rk808: use managed version of of_provider registration Message-ID: <b737f3ee039b8fb25be358a00d0adac7c4fec6d0.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_070114_251057_C1BC349F X-CRM114-Status: GOOD ( 17.32 ) 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-rk808.c b/drivers/clk/clk-rk808.c index 6461f2820a5b..177340edaae5 100644 --- a/drivers/clk/clk-rk808.c +++ b/drivers/clk/clk-rk808.c @@ -138,23 +138,12 @@ static int rk808_clkout_probe(struct platform_device *pdev) if (ret) return ret; - return of_clk_add_hw_provider(node, of_clk_rk808_get, rk808_clkout); -} - -static int rk808_clkout_remove(struct platform_device *pdev) -{ - struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); - struct i2c_client *client = rk808->i2c; - struct device_node *node = client->dev.of_node; - - of_clk_del_provider(node); - - return 0; + return devm_of_clk_add_parent_hw_provider(&pdev->dev, + of_clk_rk808_get, rk808_clkout); } static struct platform_driver rk808_clkout_driver = { .probe = rk808_clkout_probe, - .remove = rk808_clkout_remove, .driver = { .name = "rk808-clkout", },
Simplify clean-up for rk808 by using managed version of of_provider registration. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> --- drivers/clk/clk-rk808.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)