]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: qcom-pm8xxx: Fix OF populate on driver rebind
authorJohan Hovold <johan@kernel.org>
Fri, 19 Dec 2025 11:09:47 +0000 (12:09 +0100)
committerLee Jones <lee@kernel.org>
Thu, 22 Jan 2026 14:23:38 +0000 (14:23 +0000)
commit27a8acea47a93fea6ad0e2df4c20a9b51490e4d9
tree5d2426f77fd631ccc7bb7339839c9186975726cf
parent42e4a9aab4775683b52dfdb8c7f2072817758152
mfd: qcom-pm8xxx: Fix OF populate on driver rebind

Since commit c6e126de43e7 ("of: Keep track of populated platform
devices") child devices will not be created by of_platform_populate()
if the devices had previously been deregistered individually so that the
OF_POPULATED flag is still set in the corresponding OF nodes.

Switch to using of_platform_depopulate() instead of open coding so that
the child devices are created if the driver is rebound.

Fixes: c6e126de43e7 ("of: Keep track of populated platform devices")
Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20251219110947.24101-1-johan@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qcom-pm8xxx.c