diff options
| author | Johan Hovold <johan@kernel.org> | 2025-12-19 12:09:47 +0100 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-01-22 14:23:38 +0000 |
| commit | 27a8acea47a93fea6ad0e2df4c20a9b51490e4d9 (patch) | |
| tree | 5d2426f77fd631ccc7bb7339839c9186975726cf /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 42e4a9aab4775683b52dfdb8c7f2072817758152 (diff) | |
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>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
