From patchwork Wed Oct 31 08:32:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10662185 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 72A7B14E2 for ; Wed, 31 Oct 2018 08:33:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59C662A10D for ; Wed, 31 Oct 2018 08:33:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47F832A120; Wed, 31 Oct 2018 08:33:27 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 6141E2A10D for ; Wed, 31 Oct 2018 08:33: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=6GbZnwahHJBJImj5vNaEytfIqlkxnNgBKwJLAL8Klgo=; b=DBarDNKvcbqInW 80pVqU+nSnf1rNFApqPaJTg0/wX5cQQ4x524nnWMxJTi+l9jE6WnztxbGm7rAyq597dGJLZqF19TM 9pz3yEUYkb98JoESWVPA2PP/rc33IuHTxPIZZSK09eHNEFIoChVXq+D9oehqd8atr+JjJ5Lb5R1gl DgH+m1nT3QQjGoFbx3Xia1KJicN05K4toSOo+caM8ow2UoEQbBWApjny+w1OJnqllwLrBdFgH2jc8 jCAZIghy2A9AO6/YqDnrPiIcB65AIldeaMnTwfb+niyd7K7AfJY1dSnq/EojJvQfWZsU0z+Xizi7+ 6cfL956oAeRWpHbrvE8A==; 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 1gHlwK-0007UY-Na; Wed, 31 Oct 2018 08:33:24 +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 1gHlwH-0007So-86 for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 08:33:22 +0000 Received: by mail-lf1-f68.google.com with SMTP id c16so10964145lfj.8 for ; Wed, 31 Oct 2018 01:33:10 -0700 (PDT) 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=KJKi78f3BmTlbgbFoV5YXjiBkX7wj5R8W+WOr3C0zec=; b=PfsL651tMACYBbQneekQE11ULXiXOTQ1pRo5nMsOKUzqVZoIudvSQJogA+lXF6enkX LpQIovBQFQ8pzkp9M/1gA4LFAnt2fKONSWAXig7ZOXu8vN7MZoN8Hx/Y655Vrzrulmk6 iASJSCN01cooSrhPbplCwQM4R6QW5+uztA3ZHXA6XaqZO1bIIAm3XemvA2vAn6g78sV0 +jBvsWt5AWuK04MEPbtCgDa3vC1u7DL7809O0v9oXAt3di87jPI+gfgSABlvncu9QV42 xW/9f49mpmz6bDIwyvoufnCk7t86Yw1+0HPiplbQ7eapcNlGEwR/Wma7xwtQf5X89qdK 9Arg== X-Gm-Message-State: AGRZ1gJ4p5ofcbojEAOy3ROd2j6J9E8j018Y01nCxwD192u2PogZTqyQ CCo8iL/ki8fUy0ygEQQIYhg= X-Google-Smtp-Source: AJdET5dHivoOLmVKefTpysoQURcCgOEhVWg1eeqESIZmDlGxkWhU0I+qiaE5vSusHGnwfZ/HweN1rA== X-Received: by 2002:a19:cec8:: with SMTP id e191mr1196583lfg.13.1540974789281; Wed, 31 Oct 2018 01:33:09 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id p134-v6sm4397709lfd.80.2018.10.31.01.33.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 01:33:08 -0700 (PDT) Date: Wed, 31 Oct 2018 10:32:56 +0200 From: Matti Vaittinen To: Jonathan Corbet , Michael Turquette , Stephen Boyd , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Russell King , Andy Gross , David Brown , Kukjin Kim , Sylwester Nawrocki , Tomasz Figa , Andrey Smirnov , Sebastian Reichel , Guenter Roeck , Rob Herring , Matti Vaittinen , Huang Shijie , Akshu Agrawal , "Rafael J. Wysocki" , Daniel Kurtz , mazziesaccount@gmail.com Subject: [PATCH 5/8] clk: clk-hi655x: Free of_provider at remove Message-ID: <6705a681118488ea905a5d3c29266683bf1a8a6c.1540970653.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-20181031_013321_288631_459E45E4 X-CRM114-Status: GOOD ( 15.24 ) 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-samsung-soc@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, matti.vaittinen@fi.rohmeurope.com, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, 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..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 = {