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 CAF3E14B08A; Fri, 15 May 2026 15:52:56 +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=1778860376; cv=none; b=nMpiw5fZy3SRdGs8+ylChKPB7F9unUHyJ8eoQeZD1YllPLC2pOTv+fR+6aF2mZjt7hJrvi5RXlScEUBtO067mN+yc1/rzJxajlO9yVIvJws6vOmB2lm5zUgHLOK0tSWOOGLo5j/llV01mwdDgZTa4knbC2HRxUCbk4HgN89rWZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778860376; c=relaxed/simple; bh=yAxs2nnYTegsplIUZivCAZTxUwnxcs97QTBqjZcHkU4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kogx1eFMAHTXuMKCDhWuthUGEKX0nTTxBKjKriDAZQQaPz1rS39H/SbKtb0E6D8qRCrJSIcR61xCydDu9Qb11gof5K1eFtW9O55zgt+nBzFkhQP40ViezV67gMF4Gb1TuAaLDHSpVied3+wixYg9OQ+X59BtPnw5J98oRBISKMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e5q1LiCp; 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="e5q1LiCp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61789C2BCB0; Fri, 15 May 2026 15:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778860376; bh=yAxs2nnYTegsplIUZivCAZTxUwnxcs97QTBqjZcHkU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e5q1LiCprly8OI3XkkwJd1pCMlLiM77oSA18LRpLyfscEHSGcPfEI/zyJ9PV0v5C8 DKoTYdr51OYM/cMitM2zui2VRqhTz2GecKBVmFqyU2dFdXkmIbp6cddArAxQGauC6B lXr89NiXb5xbflM9ududlM01lCi6rMAvFgKZoCzs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marek Vasut , Johan Hovold , Mark Brown Subject: [PATCH 6.12 023/144] regulator: bd9571mwv: fix OF node reference imbalance Date: Fri, 15 May 2026 17:47:29 +0200 Message-ID: <20260515154654.039559798@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154653.469907118@linuxfoundation.org> References: <20260515154653.469907118@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 8498100ee1d00422b8c5b161b3e332278b92a59a 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: e85c5a153fe2 ("regulator: Add ROHM BD9571MWV-M PMIC regulator driver") Cc: stable@vger.kernel.org # 4.12 Cc: Marek Vasut Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260408073055.5183-8-johan@kernel.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/bd9571mwv-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/regulator/bd9571mwv-regulator.c +++ b/drivers/regulator/bd9571mwv-regulator.c @@ -287,8 +287,9 @@ static int bd9571mwv_regulator_probe(str platform_set_drvdata(pdev, bdreg); + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); + config.dev = &pdev->dev; - config.dev->of_node = pdev->dev.parent->of_node; config.driver_data = bdreg; config.regmap = bdreg->regmap;