Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2336901imm; Thu, 18 Oct 2018 12:56:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV62R9HWnlCbUtkBafRGsQ0VHqbxJB1g/nh5fDbEmEvsrzAEGsN2VjJ+tgTyGMqixwlLomKg6 X-Received: by 2002:a63:1d10:: with SMTP id d16-v6mr28643150pgd.228.1539892575571; Thu, 18 Oct 2018 12:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539892575; cv=none; d=google.com; s=arc-20160816; b=ZitNsa6LQ9+2KSlqPEWJw5LZ8hAXEJo717YlNyKF+eJyUBO3y4xdl91xEJD+7FJCmN 4qw9LodAm9pTdNHf20cr5Lzk/VllNDdIj3alKFg++rdrvdUYOa9dartdoFOv1GFXAdB+ uFQc56cdHjTvc/QqxwMp6FMekq2g9Efw4fedAyabp2Uq2EQ+st+mpyFagP1Q/25jYFJn kBCT7qXF48WyfUzBWawkYC20zjFJzdLRfAS/EFQCm7myob8To/lYQtoWkswy2CSwHnRM py9YOEJX0xJVcWGJkGWlsqGE1Lg6A5dG3eHcS79LhcJzpfngsQTtHr1UC2WQaWNI77Yu S0Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=7L6k26kII2orBqPMLxRLdkRv73hrDRG6uZFP4K2TZH0=; b=bnL1OGMxqONbF06DrMYe/KnCUYYu8QpQEWH365IOEGq+RTxnbVXqpL/TSkkpDBaO5q J4Fg9zA2VIDRthGo7C3bFek05LpeUkh62wPae67voVm9HeOP4qZ3CvDid0+pPW/nROrk vCFw8bfOawkXPmul7qfwUtOD7EnwH0oileFVTd8kvh3h/3qYfuorgGzjHXnA2/X72UfR +tlMDmLVukpOxzb5QRBNPSBIvowugo2XaL8PB5PwnlRrX0ZIA1Mx8xwf6CLuNFUZF3if DFb3aJ0fNTmwa2BBPpxUEX35E/IcZ3bkYV6S4cqQV6rCsklUdZvDYalVn7trPVEsJAoH jNcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UTFEc+vD; 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 g11-v6si21053491plp.128.2018.10.18.12.55.59; Thu, 18 Oct 2018 12:56:15 -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=UTFEc+vD; 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 S1727324AbeJSD4t (ORCPT + 99 others); Thu, 18 Oct 2018 23:56:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:56438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbeJSD4t (ORCPT ); Thu, 18 Oct 2018 23:56:49 -0400 Received: from localhost.localdomain (unknown [192.55.54.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 93525208E4; Thu, 18 Oct 2018 19:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539892455; bh=XP+pi782sLKmFk0zVkFQldB0KbeI/8fea4sjaxV5BOE=; h=From:To:Cc:Subject:Date:From; b=UTFEc+vD2TTqhrYxpGSGJCe697i+aC7Fs8OzjDfSvV1zlIBZM04yOwYdR9cBUXSdt q2phmGYuPNibYkKSCci1pBChta2+uoC6Z22AI4fDiwfEaeM1LlmT6E91Ir7PEn87py 2EBp9OmS3RftwwcoCWmkavKHIGHZBm7+B4R5RldA= From: Alan Tull To: Michael Turquette , Stephen Boyd Cc: Ricardo Ribalda Delgado , Alan Tull , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: fixed-rate: fix of_node_get-put imbalance Date: Thu, 18 Oct 2018 14:54:11 -0500 Message-Id: <20181018195411.3449-1-atull@kernel.org> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.16.2