Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5615206imu; Mon, 26 Nov 2018 03:02:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/WE4ctXmn9UEksXjCPu4d8uC3CiNRNUD0x6O+VVrquf6itFeq+p4RIqsLsWuZC03x2D6rwH X-Received: by 2002:a65:62da:: with SMTP id m26mr24518339pgv.278.1543230172425; Mon, 26 Nov 2018 03:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543230172; cv=none; d=google.com; s=arc-20160816; b=T9tAYHoh9la+Ygz46eT0I75cmaS7IjJxuys9Xltm4OtSLXwIcbFvSltKPnFFq6hz2Y 8VHo1J0diL2expj+LXQuzVewR4qjFHkYAFHfdCz7tpS3QGt4sWS5W4z+PHiQxxXcZ80Z hGJrXHF9++J9zo+KxlwH0uIOpPYKPF8tlIP8u2zWS4av3I9cBr9YAje5KtLIZvi/SEhS 81Ps5gX9o4oTLcFSnq2N/zmIQIeHeltfgIXMz4dAd0agJHpIqYfJZVLyI4d6aIpHx47u UhGZfmXdlAy+AiTZMa0Cl5J9YGZTzZo/AJU+oH2VgWWvDiM4++lO+ku5IZwFZa/XMzGD ubFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GUjXJpJWzTaDThtS51kKvDD++ZB/9fPgXsnIsmuE31I=; b=wNe8MhnXh6BzS1w7Tj+qjbQZfcNBuwEraFeag+HfBfI4pKxF4iJCvdUBeJribVnnTI 248edQuNPMSI7Wil0vdIJy47jVFPZGHNn2v0S2lmTw8N5Ut6Sf8TKQH2cpugQKGunDW2 FmPPnKIyTkrPZRt/OM6fpncJe6FwXdERoAY874MHQOoVqpQsXXUWX+bH0LOcVQFjnW7a Jq5Z4txZo9BCioXpc/kubsQtXD8doG2oeqf5QHSOYG10EhHMo7Ca9x2y1qu0RVqNSGAY Ckq/GQIM4XSktU8EOA2CDc9w69piwiBzL4SpS6ahGHhFb2IH6py0iiR18jg+O50ri1et XuCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aGNNNcaO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si62546239plo.210.2018.11.26.03.02.35; Mon, 26 Nov 2018 03:02:52 -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=aGNNNcaO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729642AbeKZVxf (ORCPT + 99 others); Mon, 26 Nov 2018 16:53:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:35320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728395AbeKZVxe (ORCPT ); Mon, 26 Nov 2018 16:53:34 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5592C2089F; Mon, 26 Nov 2018 10:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229989; bh=JPYe1U7yzbQiznkYEwQLYqECs/xtRpoXUZ0FX1fE50A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aGNNNcaOWOXwGKA210gekWjpWDntSNsmbgBceA3JY8rCEJr9TIjF7VAQ/ASFUExOS HTObWq+RabaAoVkVBhR8l0g5kkunxBzKrEjlbm5vDk1RNG+nZepRGBdedkJ+2kGleA suBNqH/9Fn8fpjbWmEITnupR/+0EEGuPURyCbefw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alan Tull , Ricardo Ribalda Delgado , Stephen Boyd , Sasha Levin Subject: [PATCH 4.14 29/62] clk: fixed-factor: fix of_node_get-put imbalance Date: Mon, 26 Nov 2018 11:51:10 +0100 Message-Id: <20181126105053.133373397@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105050.592727680@linuxfoundation.org> References: <20181126105050.592727680@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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