From patchwork Tue Nov 13 12:01:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10680417 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 AFBE9139B for ; Tue, 13 Nov 2018 12:02:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ACED29FF2 for ; Tue, 13 Nov 2018 12:02:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CC3C2A00A; Tue, 13 Nov 2018 12:02:12 +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 2B4D629FF2 for ; Tue, 13 Nov 2018 12:02:12 +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=c9edhVeDphT/J1ySnjVWtvDU7b2Uk/DJK3i30gIfFPw=; b=M3Mpdm7MLJWydf KENX5sYnLXUjh0WWuZHlcic9DXpV1DZpD87ib4avhPigbVEIywndvDscv9ZSn0v1WIxXZUnHC81Wx by8j87XWmLFjvuKMRgOV6nbENgmdt8UOBHRydSBWAQAvprDKwxV6dM7NmPfyIjrcuV9MCN6bi59jA 1DilyDbJsKC126egbwt14Vqe4lQ8ROl0ZP6xESiUP99DQl1Y/qWeuh8OobnNRKXWjYc6mGRmHgjg6 vo9wq0MFAKZudkbU7uwPaAEmqGtI0ht4qeIREt0zRwnbw5fHyjTf/B7k0CZa9StSsELmRUFeBTElT inOleVnyWCravxa1xjDA==; 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 1gMXOU-0006bZ-DG; Tue, 13 Nov 2018 12:02:10 +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 1gMXOS-0006ZU-FY for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 12:02:08 +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=Eg2ufM9FdHFhTVDmxheR3tr+ip3I7Xl4uZ2RuWzUJVA=; b=CtbL4mJ7ii6QzwdXcHsenzMB6 QiLjZpFizkUPwniOyrS8GRCrWTMt1pXggENbfMU9veskN7Grm2OvwGc7KCzG60F1gPzoPoS9LHys9 GB1l3ZzkzZwvKRHo04sJqgeU/3ilxU1XEDwVMzG5eyzWqS/8IWt+19N4YUd/KG2U99VJIjp28x15d O+ETcz0vVAKAlhJyBpM51Pc/K79j+FOQqariWZt2uPOKXRrQZfx/fzdNXNzPPtQWRkTQpFS2hLEdf d2lIQeFJTVt2FR63XhHXc1nHuAE4If7CdttNux10h/xyTBLLPYTiAAOls5A46nj6lneKZNhrP92eG LE9RxrqIA==; 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 1gMXOL-0004Dx-Aq for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 12:02:06 +0000 Received: by mail-lj1-f194.google.com with SMTP id t9-v6so10572007ljh.6 for ; Tue, 13 Nov 2018 04:01:51 -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=Eg2ufM9FdHFhTVDmxheR3tr+ip3I7Xl4uZ2RuWzUJVA=; b=ixv5BbQU5P2rD1eNein+us2AIC2/XP6LFSG1Zs4+h4HDdN6BV5Wz4VxgIqh8XHI8/X fZdWirl7sF4oCpKAHnutTQi86n+allV8EUuJXBj/pPVJX0bPo9yQQHO9pG+aY99tzC/9 xgkLFex5BKmlLTEkqhnqkg9QyhaQ86KMKXrdJby63WvnqY3UPzZG0hJM7HCLv3LmRNgX LFNNto/E5X7kc/m6ilD6ol6wmKqiwXZVQcssQpPl2zEDXFaigiCl4rzS5dAqvVKGOXiR vs/gPfJFyQn1pA1k3169dcb+C5P2yqMXQTyjlmn/R2Pv66qlIFqo7wJuNFxKMX0x2vXn /Ezw== X-Gm-Message-State: AGRZ1gKrjN8QK7LvN+XgnTI6AHGUjsiszEeVdY1BtiStZ4+mYVTBdR0G cUuewBdiJwNZhbp0CD6WwE4= X-Google-Smtp-Source: AJdET5eiZpJm78DDRAbNNrgPNoDh/5Ee9eTpHn/cx6mX1G4R3MmmTqs07oz3ukMBdLA0oRfOmCYlCA== X-Received: by 2002:a2e:4819:: with SMTP id v25-v6mr3261176lja.2.1542110509761; Tue, 13 Nov 2018 04:01:49 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id x24-v6sm3844320ljc.54.2018.11.13.04.01.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 04:01:49 -0800 (PST) Date: Tue, 13 Nov 2018 14:01:36 +0200 From: Matti Vaittinen To: mazziesaccount@gmail.com Subject: [PATCH v4 6/8] clk: clk-twl6040: Free of_provider at remove Message-ID: 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-20181113_070201_422615_29E0D326 X-CRM114-Status: GOOD ( 15.93 ) 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: linux-doc@vger.kernel.org, Michael Turquette , Daniel Kurtz , Sebastian Reichel , David Brown , Lee Jones , linux-clk@vger.kernel.org, Rob Herring , Jonathan Corbet , Andrey Smirnov , "Rafael J. Wysocki" , Russell King , Krzysztof Kozlowski , Chanwoo Choi , Andy Gross , Huang Shijie , Guenter Roeck , Bartlomiej Zolnierkiewicz , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Boyd , Matti Vaittinen , linux-kernel@vger.kernel.org, Akshu Agrawal 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 Acked-by: Peter Ujfalusi --- drivers/clk/clk-twl6040.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c index 25dfe050ae9f..e9da09453eb2 100644 --- a/drivers/clk/clk-twl6040.c +++ b/drivers/clk/clk-twl6040.c @@ -108,9 +108,8 @@ static int twl6040_pdmclk_probe(struct platform_device *pdev) platform_set_drvdata(pdev, clkdata); - return of_clk_add_hw_provider(pdev->dev.parent->of_node, - of_clk_hw_simple_get, - &clkdata->pdmclk_hw); + return devm_of_clk_add_parent_hw_provider(&pdev->dev, + of_clk_hw_simple_get, &clkdata->pdmclk_hw); } static struct platform_driver twl6040_pdmclk_driver = {