Message ID | 1acfe5a48b9277c863f2d5d0ba8015167632be70.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 194D0139B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:02:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05EA52A00A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:02:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC7C62A34B; Tue, 13 Nov 2018 12:02:40 +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 CBEA32A00A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 13 Nov 2018 12:02:39 +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=B33ZWT5zuTinyNvElgcbzUCxOr81++EezRnYVMmJBQM=; b=X3LXaOlj7WtMTv 4Gkk9bkQcp6ihPRYmJ0w2NIy2R5lHt2c7iwTwRw4EqiZPJMkMr289054GJReuqL0rlyi0wK8AZdwE jl7ZRl8qAJu7lrUBvEicgTYFh8Bx6cC6p6Lm3qVinMoxQtVbSTCdaysqp+Yy6nZ1Oynj5YoKHJAV2 nDa4AYgagFRGzz4rmTj0CTPAfglnFX+2iDnahxWn+rFkwmTF2c43CbDMu4nsTcB2r/oeXyRf6y+Y+ +0tbQ9nhC7mFScW+Fcs6590pSpuhVoNf6jXknOEHgBTapXp2hRHyh6Lynr80JivbAKjMTaKB7HH6O Ndvbfhz+/QQ3gn8XkfBQ==; 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 1gMXOw-0006tk-7q; Tue, 13 Nov 2018 12:02:38 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMXOu-0006tK-O6 for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 12:02:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=abc15EH5GKVAESf+iqe1waxzU2AmezuL+i/+AhHeQPw=; b=nHZ9RSmZOB/TB4bVD+JFX1naK gOudyoBEEOdbMAP0Psy54BR7SYLYFZKYyo9oX6wdbXsYIvF9nBAMFcquXibPVFwpTzypPOvzsE+7b hM/H88B9ieDX8LLJr8Ot7L4yexuzX3p8LaAAy1+8YtBA5dRrAhYay/JYJVC0FuVL3HrpRLNmJJueg +JlvamlOFcLXhvdvp2SfyeKi5zz6RDkJXzZT4XZTwvTYCwI2YR90vOK8DaXzGtoeBaSHnPrRcqQW1 4yQMX66uWI6Lga/hfzpI8qgP/tLY1mYSBxuRlXw4JJ7e0Njl/oYv+f9WmWGfw3W2GLT4L4v/FGUth WJpnx1EUQ==; Received: from mail-lf1-f66.google.com ([209.85.167.66]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMXOr-0001yJ-TZ for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 12:02:35 +0000 Received: by mail-lf1-f66.google.com with SMTP id e26so6826670lfc.2 for <linux-arm-kernel@lists.infradead.org>; Tue, 13 Nov 2018 04:02:23 -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=abc15EH5GKVAESf+iqe1waxzU2AmezuL+i/+AhHeQPw=; b=D5F44jbz3yujAZfk9hPla918oGW9L8x0G5C5j2AkKG5wUTJJAy1HzhumMKpA8Hyxr1 VVbWmzq7vGh0YbAOp5vM6YKvtIWmMC0Z2GnXRQF8M/p1AugAwNes5tMmR1NsQyS6NG7p qJrH+uo2i6OHp4QH56NlSnzFSGmbAPVcCb25ZjMp1RwBGXsyRHwxb6YriuFJSaKstNAn Z/2nrsjLdvmiuFYCFJy7il0rQp1toWC9lbqNtXx/PB4t43MqciNNEryttrvWQrhoZ+Wv 04qqSeePBDkqUsxmNuPWNzaHdLOkoW8aGJGQosjHN8koKZr2HpGJIiHjoyzoi2eFYAdB uxGg== X-Gm-Message-State: AGRZ1gJGHW/L5Ip69UyhAe8gVWIIgnwxFqs/aWmEU5bP3g84EGwu1bEP DXbSfseCt1X9rcmM5qSvstE= X-Google-Smtp-Source: AJdET5deTnRKacmN4Mj4CjKvCjxsnI+cbuAlUfIHA0kFbAMfopiwxDr6P3HwSYiDw+gDMZivP9++lQ== X-Received: by 2002:a19:4ed9:: with SMTP id u86mr2672645lfk.78.1542110542832; Tue, 13 Nov 2018 04:02:22 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id s20sm3256161lfb.51.2018.11.13.04.02.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 04:02:22 -0800 (PST) Date: Tue, 13 Nov 2018 14:02:14 +0200 From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> To: mazziesaccount@gmail.com Subject: [PATCH v4 7/8] clk: apcs-msm8916: simplify probe cleanup by using devm Message-ID: <1acfe5a48b9277c863f2d5d0ba8015167632be70.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_120233_951537_F4FF754E X-CRM114-Status: GOOD ( 16.18 ) 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/qcom/apcs-msm8916.c b/drivers/clk/qcom/apcs-msm8916.c index b1cc8dbcd327..f4e0c136ab1a 100644 --- a/drivers/clk/qcom/apcs-msm8916.c +++ b/drivers/clk/qcom/apcs-msm8916.c @@ -96,8 +96,8 @@ static int qcom_apcs_msm8916_clk_probe(struct platform_device *pdev) goto err; } - ret = of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get, - &a53cc->clkr.hw); + ret = devm_of_clk_add_parent_hw_provider(dev, of_clk_hw_simple_get, + &a53cc->clkr.hw); if (ret) { dev_err(dev, "failed to add clock provider: %d\n", ret); goto err; @@ -118,7 +118,6 @@ static int qcom_apcs_msm8916_clk_remove(struct platform_device *pdev) struct device *parent = pdev->dev.parent; clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); - of_clk_del_provider(parent->of_node); return 0; }
use devm variant for of_provider registration. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> --- drivers/clk/qcom/apcs-msm8916.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)