From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9B9C23E356; Tue, 12 May 2026 18:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778609264; cv=none; b=LOyd90Gos09SB1WzNVWVPoXs1x+cn4SrmyAhuj/HEN7Rk4ctjg5CxHe8Zc1UmmjenF3QwvtlbaZYe55jlurKfd33QHnOTBVJLfd7gKtVDiYkP9iSNq5OeJ/bDYff6A67GXUB8Ghbqpk7lqF56ts/6pcl8XtfV/bSduE/UOAZ3DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778609264; c=relaxed/simple; bh=umW03VSlaCEZtXFiTvZixUY+Y9UC/oiNg0U9eTSONbw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GqJZaZgK9Keb4GuI4hOZLFIQN/81Vg0L0Sb6W0PRQNHxxSDZMmtogB5un7oZpBLT4jHdoVIieth/ezz26LPX/RUqCvzX/L7USEOmhy0+4yreAKYGhX9m1fsENpoPFVUr440qD4GLTd0DvFpQS4fmWpZUrcWH9FfhCD1Xr68V/A0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V+NUnBc7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="V+NUnBc7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 050F8C2BCB0; Tue, 12 May 2026 18:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778609264; bh=umW03VSlaCEZtXFiTvZixUY+Y9UC/oiNg0U9eTSONbw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V+NUnBc7yOZXLf27ur+5717LC3TF3zDCE1ii4qcYe72h978vwUFMWuwoLwimWeLhi aY3LWtgxRmjc3vCdwiIyYMObMveKAiUo8lT1jSZVov9rflBNYnfyA33ZiQvElpW25H vAI1q1wMSrb0JRYYuueCdg30XTcF/D6PZMPjzicg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sebastian Reichel , Johan Hovold , Brian Masney , Heiko Stuebner , Stephen Boyd Subject: [PATCH 7.0 129/307] clk: rk808: fix OF node reference imbalance Date: Tue, 12 May 2026 19:38:44 +0200 Message-ID: <20260512173942.850745298@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260512173940.117428952@linuxfoundation.org> References: <20260512173940.117428952@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johan Hovold commit de019f203b0d472c98ead4081ad4f05d92c9b826 upstream. The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: 2dc51ca822e4 ("clk: RK808: Reduce 'struct rk808' usage") Cc: stable@vger.kernel.org # 6.5 Cc: Sebastian Reichel Signed-off-by: Johan Hovold Reviewed-by: Sebastian Reichel Reviewed-by: Brian Masney Reviewed-by: Heiko Stuebner Signed-off-by: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- drivers/clk/clk-rk808.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/clk-rk808.c +++ b/drivers/clk/clk-rk808.c @@ -153,7 +153,7 @@ static int rk808_clkout_probe(struct pla struct rk808_clkout *rk808_clkout; int ret; - dev->of_node = pdev->dev.parent->of_node; + device_set_of_node_from_dev(dev, dev->parent); rk808_clkout = devm_kzalloc(dev, sizeof(*rk808_clkout), GFP_KERNEL);