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: 10663625 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 D4FB913B5 for ; Thu, 1 Nov 2018 07:21:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0DF82BBCF for ; Thu, 1 Nov 2018 07:21:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4A4B2BC2C; Thu, 1 Nov 2018 07:21:52 +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 4528E2BC29 for ; Thu, 1 Nov 2018 07:21:52 +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=AV/0q8ofR4yyrilKKmOSW3f08L1jPC1DPcp2W27Z5ro=; b=UX/+c0C+vuv8aO dK5W/1ZYDOnyvrVwfi07E44ojZQP0UvAjRhRMEjh4uhwImm/6leM2563STXLz90MSkDewitoYneHJ N/FJFjlTanRlTddp/e6MHNHGoEOmf1NdQq2dCe2pZVi596EUfonTf4O/eqDQVG6d7efkdoNzBGF5o zilb/WGZM3E3b1SWMmGh6kuvKV/UdK8Rg6bfQjcso0ca6OLpUHSsqjpPvNIbhiGwGD7BG/rR4R3R7 qdvdDXfPbKAgFTGNhGBTguj+KJs9EBFUXLBAd/8d7JK2WgktG8+Yrvjr0H2Ne0PIxjRq4r+VRkMSr aw3tnwgiKB4UKyFEiC4g==; 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 1gI7Id-000092-76; Thu, 01 Nov 2018 07:21:51 +0000 Received: from mail-lj1-f195.google.com ([209.85.208.195]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gI7IX-0008MQ-SU for linux-arm-kernel@lists.infradead.org; Thu, 01 Nov 2018 07:21:49 +0000 Received: by mail-lj1-f195.google.com with SMTP id k19-v6so8652026lji.11 for ; Thu, 01 Nov 2018 00:21:35 -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=qntQ972v7KGRc5moKB9Cr+OrTDLWwa2T89qr63wPplftLEzdcGWbd8DCGp9QIeU+g9 Wu/9QHX4TOrtuVJjoq9KT/QGsOayjShjkRRiofyNcBx2oQmYb+b5MzsqvEaKal67WQCV CJBKl5fLHjZAtH9NzZOzsOJOqO+NRhTPjcZrvd93jupd+bRYi2FGxnMbrmSa3A9ZfoG6 DJCIqTg+njQkDiDOI1Bu4ONf0LP5gHgCCKFd5fJfQu3+QLvgBKbzYS+eWwAkGbslJxS6 hMwaGXFexKLxpDHrmvBv8rTzLpj+ACOUX4OJFRvlFAyXU9ULHXuTYUUGp3iz8zXS1b/+ TlXw== X-Gm-Message-State: AGRZ1gIFMDK1Awr1YUfxIQhKbbbfHn+znnuFRmA59pcve61ibeYd6j69 CaXV3tSed2LwuWf6pl46Nys= 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 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) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181101_002146_049439_51DA4839 X-CRM114-Status: GOOD ( 15.14 ) 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-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 = {