Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7278639imu; Wed, 14 Nov 2018 14:45:09 -0800 (PST) X-Google-Smtp-Source: AJdET5dbY02dLd+ViBAkuGagIxUXfHtnTBjA6oQaAaTFfeYH8sXgltVnWvMdTGMhzdkaRBwEAgJZ X-Received: by 2002:a62:cc4:: with SMTP id 65-v6mr3814503pfm.127.1542235509599; Wed, 14 Nov 2018 14:45:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235509; cv=none; d=google.com; s=arc-20160816; b=ZpgkOQleoR3iW3rC4xonEIoaw//vcQJjGVzfqUzZ1PuFssTd7XLhHKNWGYa1W16vmG bt7Ovql3KS8bVNoq+Bunq4UQstWWbwDoCZzBKone1qCQomes3GGFiimt14nbzEfd+mMS tz7OAmNUyPRpA/FDZ3F/mPXnuF+IpF0t+Lemgl2IF2YVL9HjSBn8mlKH0ClWu83VLeuD hcSqlFgUcN3Yjui+3bjIWcA6ENHb83u6O9NkpwzEcF5b6eRDYXV9XEAsOKLFjKWj4yj2 0oYldhJqmwQ/ppaIyKrbx75uZiu+sa91LGSDmwIMbvSIv2K3xlPud/k40p3xpBqRAM3g pYCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=z0SF6ttFAw6froW0eneVuBXrVGW9JjHptx5DlY+G7BY=; b=ylMi9+9/I+hoQaTwZj79PzD4zk1TCUM6EOJ1ESNq6lxcPpwUWJIGVY+qJ+NxKlaQbY 4FEsPKpVsSG1jZM/VxTfAV444r6LZ7kW6US5VQ1BBGdnh/AnAcUsRdSdjIHvlKe5NAgq RqpdA/3vLdHTB2fSMsVxBla9l1nf5XJCqiVhBqEj0zNwgd1Jo2CnHowpvSqErDXP6qnv XbWSZen1EQvpi6g+ew7odm4u6ImLI3KwN4KHErZjG1RFenqL3SoyuB+GFgoju8BrMYQZ kDMWmeEYBdqBnRbJPhIdRV6MtR/BRrLSLamB73Zznbgm6cUCRxSB5h0Mavher/JFXPxs BtHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vPN4bdw3; 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 71-v6si26516178plc.230.2018.11.14.14.44.54; Wed, 14 Nov 2018 14:45:09 -0800 (PST) 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=vPN4bdw3; 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 S1728948AbeKOIsR (ORCPT + 99 others); Thu, 15 Nov 2018 03:48:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:34408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728647AbeKOI1U (ORCPT ); Thu, 15 Nov 2018 03:27:20 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (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 2D64022528; Wed, 14 Nov 2018 22:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234137; bh=43e4ScMAwofi2Co7N7LeyAcde7+k3iRoLGiQLiTwWIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vPN4bdw3wEN5muZTv2f6ors38ricgZfA2HopRBheoFcpCd0aK7SDIm8zl1Gooi2rY jpyX7ozKKQnf3UTKGF1xFyitpxUKFiAQo2W9HTVbmbVRJGcFmR/XQOGSavQPYd1ogX Ira6jH2dBoAfcLAdc5EqejtverBnI9H4dovAQyaU= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado , Stephen Boyd , Sasha Levin Subject: [PATCH AUTOSEL 4.19 37/73] clk: fixed-factor: fix of_node_get-put imbalance Date: Wed, 14 Nov 2018 17:21:31 -0500 Message-Id: <20181114222207.98701-37-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ricardo Ribalda Delgado [ Upstream commit f98e8a572bddbf27032114127d2fcc78fa5e6a9d ] When the fixed factor 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. Reported-by: Alan Tull Fixes: 971451b3b15d ("clk: fixed-factor: Convert into a module platform driver") Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/clk-fixed-factor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 20724abd38bd..7df6b5b1e7ee 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -210,6 +210,7 @@ static int of_fixed_factor_clk_remove(struct platform_device *pdev) { struct clk *clk = platform_get_drvdata(pdev); + of_clk_del_provider(pdev->dev.of_node); clk_unregister_fixed_factor(clk); return 0; -- 2.17.1