From patchwork Tue Dec 4 11:37:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10711585 Return-Path: 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 020AD14E2 for ; Tue, 4 Dec 2018 11:38:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4C682B72C for ; Tue, 4 Dec 2018 11:38:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7CFD2B763; Tue, 4 Dec 2018 11:38:03 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 8D6762B72C for ; Tue, 4 Dec 2018 11:38:03 +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=9dZ5jyX6cNArBHYQq6Pd5LZjNOiqbOZVibpaqjLTz7s=; b=Tu4XaZolzK9rkk s9WTZrOqIHpCJIU5pRw+wVi21hlWMSGIzOwrekVKKmKwoKEqkUYoOh8qmyU9GuDdFDBAeMaFiPKng yc1CElpaHqvHNp/ynf0HZXu1NwkoXA5oRvy+9T5c6Elo+g5SFPrXxkTkLUfCYo2liHbty+JgnE1+w yPzMoHPam/HavuZCOpOt2xKoF8ahlX0K3Fo9gdfuWhrFfwmF5K9wV9Ve89nH3xhTdDU756orA0DuU BWDFGfp0/dVwpFNRCLSPxoZaJQjZx5koW+wJLxJSdciSrp0gth5vkh4zsZ+hHXfPOnMIzOZ9AMZeU GS9UexuA3gIa6m0Y+SYw==; 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 1gU91Y-0002mt-Qh; Tue, 04 Dec 2018 11:37:56 +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 1gU91W-0002lL-1C for linux-arm-kernel@lists.infradead.org; Tue, 04 Dec 2018 11:37:55 +0000 Received: by mail-lf1-f68.google.com with SMTP id p86so11688516lfg.5 for ; Tue, 04 Dec 2018 03:37:43 -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=GIzu5TM0Q0ij7JdKvBe/DIJ+uIu2SF/SLoojaqBlAkU=; b=BmR9QGS6lKKmLRR/99GR3eWN4Lg3X2E05YVKWEp/Vn6RwcsiSe+hQMX5joY0Bct9d6 tD/q5AcBSBgywkqNOBvon30YlEzIh673w8uwObnuHXFmrHYWtSQVkMimRFIZfjG7pY4p tYVnUrWmZOUgxd/KqT67+Zlp3j/Fby6Mo0QVuSjvEXV51Bz7wqr3Uvksm0fYR/oFwmBa Hg0gBIfcrPNT7XgVqRZ6ODDvsOmSiLU8sbrhiZz7e4M4vMxVrfKJgeov9ripz9t+SGNq k+Nd6+AR9LltSVHEXpGpCRUJvKSefOAaFtVG+qkpVjko7b2oZ/qEBCnysom1o458g/iA md1g== X-Gm-Message-State: AA+aEWZgPQ+qUlH7NP1zsGQo1Aj6jGTrHYIV60jW+A/fLnJI5o1n/Cy9 LrEY2OtIFTEu/LoM6FNJQLE= X-Google-Smtp-Source: AFSGD/VViV3CLRN5jn1QfIg3yeByA6Pca3qlmf7TgBZw3CGSaVwAwPUi2LOC5/ENoK1+9KOlr9U1dA== X-Received: by 2002:a19:5402:: with SMTP id i2mr11152848lfb.128.1543923462510; Tue, 04 Dec 2018 03:37:42 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id e94sm2935609lfi.23.2018.12.04.03.37.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 03:37:41 -0800 (PST) Date: Tue, 4 Dec 2018 13:37:29 +0200 From: Matti Vaittinen To: mazziesaccount@gmail.com, matti.vaittinen@fi.rohmeurope.com Subject: [PATCH v6 06/10] clk: clk-hi655x: Free of_provider at remove Message-ID: <90cd96112ca1ade6bff3b58989e290ae3def59e2.1543922403.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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-20181204_033754_071402_52AD943C X-CRM114-Status: GOOD ( 13.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: david.brown@linaro.org, linux-clk@vger.kernel.org, b.zolnierkie@samsung.com, sboyd@kernel.org, linux-kernel@vger.kernel.org, mturquette@baylibre.com, rafael.j.wysocki@intel.com, linux-doc@vger.kernel.org, linux@armlinux.org.uk, krzk@kernel.org, akshu.agrawal@amd.com, cw00.choi@samsung.com, djkurtz@chromium.org, pavel@ucw.cz, pombredanne@nexb.com, andy.gross@linaro.org, andrew.smirnov@gmail.com, sjhuang@iluvatar.ai, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP use devm variant for of_provider registration so provider is freed at exit. Signed-off-by: Matti Vaittinen --- drivers/clk/clk-hi655x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-hi655x.c b/drivers/clk/clk-hi655x.c index 403a0188634a..a0de3315df2e 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_hw_provider(&pdev->dev, of_clk_hw_simple_get, + &hi655x_clk->clk_hw); } static struct platform_driver hi655x_clk_driver = {