Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2372055imm; Thu, 18 Oct 2018 13:32:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV63IeXRI7z+1nUlJuBdNHX5cGxsaPJhTXCOMA6L659KFTfajVTVf8xViZ34i/zIn6FoY+XeO X-Received: by 2002:a65:4145:: with SMTP id x5-v6mr29695211pgp.309.1539894765454; Thu, 18 Oct 2018 13:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539894765; cv=none; d=google.com; s=arc-20160816; b=mWoVdw3U+lbVyewu10msd7pm+TV/QllBntDvB9grjWUs/3I5rPk/LblfiPwGcdaMQY 9U4QlXEJCHU8wOiiKEEJx/LEG2gvsGz7I3ZN6H+9dO7nlDc7OfyOSAfS0SqF/CbR91lb A344McIDaQsOVM0KXMVFEicfCPCAR40fCLmhd8U7RsCpPC8BoPSO77IGZbFe1VTeWdDZ 3uIzSaNftwPMgIi11luzIlH5l+1UhAwjDynfKB5205yKtqGi6exErEYLf9IRhR/jGrNa 3Ua7N3eor+3BpLg6jKyxeNouiizQBDM5wSAdZnTugLFj+K1Hh/A+vB4OBZrzmcuueBBw vf1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/bD1brIqnpyWPXgivlwuCDGOPuwd7Qeg4mkecUb87Pc=; b=X9h+EKgss1p2KqM919JfGmZ0UdwP/3owL1MqLBtoPpNDq9SLQLV7kAiYi31d5gQ0Wm x3UX8zYVX91TS8oBOmPeAIeicXMqy2l1Ejzl0G7/tL3PCWxSSFonPAYzxi5D3Ci/B78p NMoWiB/UMaO537MFT7hHsNqFIcJYdXWvqVZH+vFQYBz8Cf+4S04qHz9CtHTM5G9hW/IH JAXIDjhuKcCEjvhJ5vnwZtoeP2s3okPICB1uXzy4wwI3iy14aP8GZ54dyNmqsnWpBrFi XwCyx3Sjthi6RQD7RpWeOKp7vHtdQuP8/Nj223GWGmb9VRW4FCZ0oFD46IXkKukLCoLE Uwog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=weSckufE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18-v6si20035355pgh.523.2018.10.18.13.32.30; Thu, 18 Oct 2018 13:32:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=weSckufE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbeJSEdt (ORCPT + 99 others); Fri, 19 Oct 2018 00:33:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:39596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725738AbeJSEdt (ORCPT ); Fri, 19 Oct 2018 00:33:49 -0400 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8588621479; Thu, 18 Oct 2018 20:31:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539894666; bh=rj5jV9OQAYq1PRnre9bk/MxrESSL7Oa0YV1Pb26C4bg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=weSckufEM/NtgKiNqCW5Uj+Cj5czqMCnMTO0W1O6iN7Qfz7DJb/X+ehBRslkBcVEO 6Hi845suJX2QsI8qbQ1V/wDEBRGK+w0Uhxyy9vFir8izTZe+IXPYGVuBsQP+qVBUNr uDo1jcaLmYhEvwP9vriVFyiBnxjY709GYla+kJGs= Received: by mail-ed1-f49.google.com with SMTP id l14-v6so20511500edq.0; Thu, 18 Oct 2018 13:31:06 -0700 (PDT) X-Gm-Message-State: ABuFfojbkNxtNbCjdGp2d6fmlNnzXwv5Ye4BG0MEIpLFUglUsE6okBSY 9ZAM+PjO4jLoLsWB129H7WgGo4AlW+LEa70h0Bc= X-Received: by 2002:a50:cd57:: with SMTP id d23-v6mr4590683edj.60.1539894665026; Thu, 18 Oct 2018 13:31:05 -0700 (PDT) MIME-Version: 1.0 References: <20181018195411.3449-1-atull@kernel.org> <153989416422.53599.5865157270835783532@swboyd.mtv.corp.google.com> In-Reply-To: <153989416422.53599.5865157270835783532@swboyd.mtv.corp.google.com> From: Alan Tull Date: Thu, 18 Oct 2018 15:30:28 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] clk: fixed-rate: fix of_node_get-put imbalance To: sboyd@kernel.org Cc: mturquette@baylibre.com, Ricardo Ribalda Delgado , linux-clk@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 18, 2018 at 3:22 PM Stephen Boyd wrote: > > Quoting Alan Tull (2018-10-18 12:54:11) > > When the fixed rate clock is created by devicetree, > > of_clk_add_provider is called. Add a call to > > of_clk_del_provider in the remove function to balance > > it out. > > > > Signed-off-by: Alan Tull > > --- > > Fixes tag? I'll tack one on. Fixes 435779fe1336 ("clk: fixed-rate: Convert into a module platform driver") Thanks! Alan > > > drivers/clk/clk-fixed-rate.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c > > index b5c46b3f8764..6d6475c32ee5 100644 > > --- a/drivers/clk/clk-fixed-rate.c > > +++ b/drivers/clk/clk-fixed-rate.c > > @@ -200,6 +200,7 @@ static int of_fixed_clk_remove(struct platform_device *pdev) > > { > > struct clk *clk = platform_get_drvdata(pdev); > > > > + of_clk_del_provider(pdev->dev.of_node); > > clk_unregister_fixed_rate(clk); > > > > return 0;