From patchwork Tue Nov 13 12:00:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10680397 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 0564714DB for ; Tue, 13 Nov 2018 12:00:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7BC529FB6 for ; Tue, 13 Nov 2018 12:00:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB5C529FE8; Tue, 13 Nov 2018 12:00:38 +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=ham 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 C88BD29FB6 for ; Tue, 13 Nov 2018 12:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732840AbeKMV6Y (ORCPT ); Tue, 13 Nov 2018 16:58:24 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39293 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbeKMV6Y (ORCPT ); Tue, 13 Nov 2018 16:58:24 -0500 Received: by mail-lf1-f65.google.com with SMTP id n18so8612137lfh.6; Tue, 13 Nov 2018 04:00:34 -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=GkHc1XDfS2zAEG1O6tNrzFVGgOycf/0Y3wU3cQalzu0=; b=EkX6r/T8dVjo8tuTsibGaRQKUhLMhVCfXOZjcKMHAunPud79u60GLvG3VLiWOkl4L9 gL48vYlYu57BBSkdSzKBowm4r9Y4f8r/w6uVAiI+v2eJDHgVYEiHoPyhcPTHdeye0250 2bpXf8UusvSrTqOuNedoQzd3Jhrp4gYJ2Lp2Y7Wrj3C+wB1UhtE/y0dfe7m+HTBa4t1b cHwcVnCUaeQPGexzc0I5IHlLWKJkEXtuiGdXjRxvor8syd7FyFUyGIl7d1kMEle86OaE ADg4QyZYTxmOwckuYvLhubVjb6InVbt8utZaGosT6OrYkxpJ5r0plwSp72Fhk5dQvpmp rN2Q== X-Gm-Message-State: AGRZ1gJlFR+S1qlr9pWrV0LCEWd3uZdwfb1HhPmO5KXcncTi7ww4svyr zaNW2dp2IFroNzGSwlWXlXg= X-Google-Smtp-Source: AJdET5fOIQiRXuBMYXnLuVnYwmroVFeBZiYR4GD6cOcs23DQeoIaoqxLi7kkCGtpTFX+3+gD23QBTQ== X-Received: by 2002:a19:24c6:: with SMTP id k189mr2921256lfk.77.1542110433382; Tue, 13 Nov 2018 04:00:33 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id p186sm3426622lfd.83.2018.11.13.04.00.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 04:00:32 -0800 (PST) Date: Tue, 13 Nov 2018 14:00:19 +0200 From: Matti Vaittinen To: mazziesaccount@gmail.com Cc: Jonathan Corbet , Michael Turquette , Stephen Boyd , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Russell King , Andy Gross , David Brown , Andrey Smirnov , Guenter Roeck , Rob Herring , Sebastian Reichel , Lee Jones , Huang Shijie , Matti Vaittinen , Daniel Kurtz , Akshu Agrawal , "Rafael J. Wysocki" , 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 Subject: [PATCH v4 4/8] clk: clk-hi655x: Free of_provider at remove Message-ID: <4948a0a312c7b7b4149376d1b6eff26c99d29ccf.1542107769.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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@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 = {