From patchwork Thu Nov 1 07:20:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10663607 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 C656E13A4 for ; Thu, 1 Nov 2018 07:20:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7E312BA23 for ; Thu, 1 Nov 2018 07:20:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B7B12BA35; Thu, 1 Nov 2018 07:20:42 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C19A2BA23 for ; Thu, 1 Nov 2018 07:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727997AbeKAQWW (ORCPT ); Thu, 1 Nov 2018 12:22:22 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42328 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727573AbeKAQWW (ORCPT ); Thu, 1 Nov 2018 12:22:22 -0400 Received: by mail-lf1-f67.google.com with SMTP id q6-v6so13488119lfh.9; Thu, 01 Nov 2018 00:20:34 -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=DBw9X+6/tqDY6z2NiDIHzqxeMVWidla0ho9Yw8W2TDNFIM5ekNQ4Yx0TMW8MU1vEjY ryEfR9JEXn6Ve3TVA/BJcOCJXHxFXRw9hZbgfroVzhf+s9hvDEQPdYRzEEunFzxe4wJC h4dfekfnIe9lPtw9NSv5+L9qbC+6NSyTNnL20FN58nZ0PMWqxD2x928fC1uNv12PJgr7 RiH8Ges+2r8XN3EshE8qSJei77ocJSBRy7bxMa68LpBPsht4yQ2nVsOo0AJKjfbk5IS/ TlsuqmC1UO3I0YBJgr/xKrMwS8HOAJTA2gKHrPlqfhgXpmstsHZ40jL8637b4sYdWykt 1QWQ== X-Gm-Message-State: AGRZ1gLtGbsMgJnlNmTRFZ0BLiqZju2a52dZqlLidRPU6j7Et9hMdJmL iNmCjvOhYjlH9w3yXX0eTTk= X-Google-Smtp-Source: AJdET5dAOVKivRGpFyMwJ0rc2aWE1+zCj+Mct0ZJ7P9yPLK4ADxnHxz6ml/uPyWRtu2zrsPJaeEk9w== X-Received: by 2002:a19:a086:: with SMTP id j128mr3438420lfe.93.1541056833783; Thu, 01 Nov 2018 00:20:33 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id u26-v6sm753622lji.85.2018.11.01.00.20.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 00:20:33 -0700 (PDT) Date: Thu, 1 Nov 2018 09:20:20 +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 Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, matti.vaittinen@fi.rohmeurope.com Subject: [PATCH v2 5/8] clk: clk-hi655x: Free of_provider at remove Message-ID: <3b6742f090502f1f75cba283bc6d29e8ccbd92d3.1541054985.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) Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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 = {