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 0EE3E2EBB84; Tue, 12 May 2026 17:45:23 +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=1778607924; cv=none; b=RiesYN3eo2XSy5AjW7f9af/U+Sqsj0PM52FRpS4o12KQC7HIQL+CS887NNqez5BaK6CJgcNRp0SaC8RJtT/boASQIwprJ4uWvSC4FqXDaBhewWGbbuuar8bmypUsXE52xuDwvyd/FG3p8pX1pNvcua3Ch1LLkn1lujAvw/UvuHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778607924; c=relaxed/simple; bh=T5hc7CXV4GisKUHfogWLe5qngQyxGFDjE6PrSk9D4ao=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rXw0CKO5lullKKV3L8RphrYYuNo80q5rzAGcDVmMb/Syux8wJHPPWeazJpeI4QSHSDSNPpscgm7eL4MlrKxh0SwZraUjw05LxEV48a8nATJFaOfuAW4YLyDUk3W1CKwKtR1oF116ewLxT4QJ2CAahUt6e2N9wTxuevgndI25D1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eaC16/H7; 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="eaC16/H7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 460FFC2BCF5; Tue, 12 May 2026 17:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778607923; bh=T5hc7CXV4GisKUHfogWLe5qngQyxGFDjE6PrSk9D4ao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eaC16/H7PgYAjkQoq7JQdtyfzhXBcGdkqH8kdQj5gdMllG4GwxWXBfz6JFsSIwz0Y wGcpW/nLTupbMoWrZ+VCETpfVnjXwJDYBixdRpnzfENgmAySjWJWWztQhbkIK4WuFW 9/d7ij/qLlFkPhqBzORasuVvoT1fnzFwuwA8QkAI= 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 6.12 087/206] clk: rk808: fix OF node reference imbalance Date: Tue, 12 May 2026 19:38:59 +0200 Message-ID: <20260512173934.696793951@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260512173932.810559588@linuxfoundation.org> References: <20260512173932.810559588@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-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);