Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5612206imu; Mon, 26 Nov 2018 03:00:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wu/fFRPCjT5uX0yOgnsIvFAAKHbNe2ibtxGtozy1RsVXJdDQJzOz5UB8GfCfz0JEQxqEwC X-Received: by 2002:a63:89c2:: with SMTP id v185mr22610040pgd.97.1543230043164; Mon, 26 Nov 2018 03:00:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543230043; cv=none; d=google.com; s=arc-20160816; b=exLKrqBOTlvcvcAI0eq0vkX5sTAHJm7rjKeWnw0tsUMEz0gJf5rEy2AZ8LG3SGJ0qD /0Glxiy5rJuyASnSBr0iICt6aa34og2BiSA1mSPGYZBxH1TDl4BJ0QmsammD/8auzOTb mqHkpE8O5+c1hmdsY61ChhbmepXK1TnJhVAB2TR+yHoZOxaPhPUDBwUaD5CdaMLa0GTx LGWSosMp/jDIRJikRRisITVM+/aA0VNFleSUGKSttIUQ6/Kk6Ig4/dRTvrI7/3cDjT3M 7sMWYR2bfcr+bqvpD70FqmxFcozE6lUDKKa8Dppxehfh5DVoLJ8U4rP2DcRbq7ZKPB4U 3Scw== 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=MtnbTHET5DMfMXYx2a4zqgkHLyfE8U8kpMRpYWfl0SQ=; b=SOJdw7cGfqy5sm5rSGILJ+YjMrof4+wAXpIbvRjkxDETB8OPEiTv2D+yOJ9g4E96SZ xcSQoVwd2XMC3T8hdLmxwoqwnZ6FTMfIUtddKfnxTMrk1dGjn/RkIAXi7DYInw0JIl2k CR7Pq1ZUEHmFys3HZInT1E0rTONN5rkZ6/z/vo6xFDtTjmiHrj1o+8jiUTXxgdIAo/7y VH5pmZ4lWsX4/BTx5JF870En8Fol5O+fARajYyFmdkC5JqfdH+h1z3wwYQM4zr5F0L7Z NbbMWZyfp8lDcR2swzzQMF9F1YgC3xO53QWyvCFLBfpGmNz6G63LPU2Jnp+ZzmNl8QHt ElwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=plI6RUEy; 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 a5-v6si60999400plh.157.2018.11.26.03.00.28; Mon, 26 Nov 2018 03:00:43 -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=plI6RUEy; 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 S1729411AbeKZVwq (ORCPT + 99 others); Mon, 26 Nov 2018 16:52:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:34294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727875AbeKZVwq (ORCPT ); Mon, 26 Nov 2018 16:52:46 -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 0545F2146F; Mon, 26 Nov 2018 10:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229941; bh=1vQCnEXPrN7jXVfaI9zPnS/IJsOgmsV5iaveL7pQ+1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=plI6RUEyafVnQcCqKxx6I7jHjpEqiT2EYdlAo1HJsMwEWUF2RD3Rl0eQovYd3clmP 63hCiJuQ4izFjrMEhoAPbk4GTfWcCAmgnzxmD14lqra1Unh1+mMknpZSE6WKtWMgYc 3Df0Sw8ys4JnWhuPf0fuFYUA9+LQ8roH63Ryn2A4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alan Tull , Stephen Boyd , Sasha Levin Subject: [PATCH 4.14 12/62] clk: fixed-rate: fix of_node_get-put imbalance Date: Mon, 26 Nov 2018 11:50:53 +0100 Message-Id: <20181126105051.921429659@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 52091c256bdcad0d01e2852a63f19cd2cce6af96 ] 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: 435779fe1336 ("clk: fixed-rate: Convert into a module platform driver") Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- 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.17.1