From patchwork Thu Nov 1 07:21: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: 10663623 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 B4A6A17D5 for ; Thu, 1 Nov 2018 07:21:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 951302BA51 for ; Thu, 1 Nov 2018 07:21:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87D262BC25; Thu, 1 Nov 2018 07:21:43 +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 479B62BA51 for ; Thu, 1 Nov 2018 07:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbeKAQXX (ORCPT ); Thu, 1 Nov 2018 12:23:23 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36334 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727573AbeKAQXW (ORCPT ); Thu, 1 Nov 2018 12:23:22 -0400 Received: by mail-lj1-f193.google.com with SMTP id s15-v6so17190103lji.3; Thu, 01 Nov 2018 00:21: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=+s3r/08+Ga/YxLK3dh6bw5wWfEcqvsWpac0ppTzEu1E=; b=M3UNei3gNrsLK7Ll71W4dLaMnmENd+HV+MpF6U1G4pEneVfOzgreCM0GYCuT20nBCi WzZTXw3RNkCD3xGjv8rGEXr+VUEDc+O/ZRbnRMVOYbrJ2qyyr3ik4aABDz5m7yED2fTB r6aXkzqYowOCy3vjI7/974hMPh9TIkw5upsOtmdtp9cXTP01oMnC3Td4XMDUQQzGxpVb trGE73cK9YQ30FRH4Hs63hiv/i4qiBquMolsNUbaMI4F2mxCWFFPEB4HQuiW9c/LhYJC W3J/NK4ZmX+YcQZ8waE7PZu3RbnXJZsCM8B9fvdtOi6SGhotDlqV15FWUoB/ButSCCAz b7+g== X-Gm-Message-State: AGRZ1gI+jOSAc+6FQAesjI7OwjmNvB+v1gqQy7xxe5OdupqzHp0BQWEG z8p1DSWH23OeL47Z4t2VZX8= X-Google-Smtp-Source: AJdET5cbjSe5RSBpNuhidRAzzSDJ220q+tEvN1OF/1U/L0HgDVgFi3uuCSUG8j147fDEEGG3k84Jlg== X-Received: by 2002:a2e:b1d1:: with SMTP id e17-v6mr1827218lja.16.1541056894002; Thu, 01 Nov 2018 00:21:34 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id r7-v6sm4037234ljr.21.2018.11.01.00.21.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 00:21:33 -0700 (PDT) Date: Thu, 1 Nov 2018 09:21: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 7/8] clk: clk-twl6040: Free of_provider at remove Message-ID: <4119302cc34182967ae79169e8eb34c59ffcebaf.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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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-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 = {