From patchwork Wed Oct 31 08:34:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 10662217 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 B0E0314BD for ; Wed, 31 Oct 2018 08:49:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CDF72A330 for ; Wed, 31 Oct 2018 08:49:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E6902A4B0; Wed, 31 Oct 2018 08:49:57 +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 E441D2A330 for ; Wed, 31 Oct 2018 08:49:56 +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=lEovDlYQQZxMfX 47BTuqwVhxPz/LJbcZhYVNDEwARGUgX8u0L1WQfh155YTpJIwqIwsETFhvRRRuhTf9WqTbXKAlSTW Sk5GH4trf2+M9UOtXOPfaYHshKGKfA/D9gkcZossflshcL7s/iHyyCADGPD5BO6ejExrxXBDctpky i+e7FETE5eqHzR3M9npPm2lUh38rMw4sGaHw7w/uSQMVC2u3/1xEL2ZPiNH4cP2XcGRNoFTa+CCQr rTPQKQbujDW3plZiuYpLkAmqpIwj9e/3YjXTW948nEl7CcLea5Ae51rShSn5PVQd4AHLX98CU5TkS 9BQKxgSP39v5rL71/RoA==; 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 1gHmCD-0005EA-6V; Wed, 31 Oct 2018 08:49:49 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHmCB-0005Dn-RN for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Oct 2018 08:49:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+s3r/08+Ga/YxLK3dh6bw5wWfEcqvsWpac0ppTzEu1E=; b=It+6pnLOjogtStjs+QfyFg0/K wY0/ABXNIjbi2PSkNengTI9IUVAUSrUIDmL+YVnxTaC676PM1njGjOv+33d9dkGQiv+FNY1kTbYqu GEG73FIPH2vIIj08qZFqpWpN/zPn138mVIDV/eCfCT6HD9jkp8/nLdFnfmMsBPyafydL2juEUY0R6 iPCneWiiTL7uXvj28WyV65QPvsNYikAuZ9cVQJGt3/wRuw4BN/GZUI1gh0G/M/PVhBQ8KyNK2kf14 86qZY3XpA/khsFfd1p82tQa4CWjfD4b3lvzstM6+DH0M23Z9w731vPO4SleMKGna5cjVNNr3ze2pt 9kcYHPojg==; Received: from mail-lj1-f194.google.com ([209.85.208.194]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHlxJ-0007jf-Ri for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 08:34:27 +0000 Received: by mail-lj1-f194.google.com with SMTP id s15-v6so14019958lji.3 for ; Wed, 31 Oct 2018 01:34:15 -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=H9WzEt8Cq5mmSzH0bDAsfo4XEPsM78fZGUYZ4GBahapC0DCsFWZHiVRHkCldJJDzLP iYi4LbYzUwSusUV3qmlAfag71wErS458/acml27o0F7vl2+Ugioq05bpbcsVkj7oA09+ 9qE7XzT4jtZ1RGgAtGt0ynKApRFXjG0a2XHlRRPCSab8a+22/r2YMx2vXc8cyiaW5tN5 SADXifSVKA7kohL1Ap9GnsKVEAH0mdKNRN4gXtaLNRVHvPidKJNoa+nXmCPVpHMW8n/P AA4tIi529dctQYRpnS03dlnw3tqSnXluQFsKfj439rdDye8kqUqmZKRg/AhgJ39G0qTE gQlw== X-Gm-Message-State: AGRZ1gLCrWdBnBHDejvUPE/w4DRb1svr2SiFCkdtRSLsUsJ09zpAYA0v 5uS0d6RBPDgfklGIQRsyeXA= X-Google-Smtp-Source: AJdET5fHQE/hzwCsh3LjOV1NPtgcihUmu+AmjleYo4x6udHFOsAC1s0k8u7G84d9Nl0a/MMrlc9TRQ== X-Received: by 2002:a2e:6594:: with SMTP id e20-v6mr1486335ljf.123.1540974854246; Wed, 31 Oct 2018 01:34:14 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 18-v6sm3586149ljp.49.2018.10.31.01.34.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 01:34:13 -0700 (PDT) Date: Wed, 31 Oct 2018 10:34:01 +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 7/8] clk: clk-twl6040: Free of_provider at remove Message-ID: <5281ac8223e5ec2673341e2655abf1144e997d10.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_083425_890487_EBF8E3F5 X-CRM114-Status: GOOD ( 15.66 ) 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 = {