]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: exynos_adc: fix OF populate on driver rebind
authorJohan Hovold <johan@kernel.org>
Tue, 27 Jan 2026 21:07:04 +0000 (16:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:44:20 +0000 (16:44 +0100)
commitbb96fcf143b7829c67e1a10b28cef3ed9e7cbf9a
tree8a9b9f10fe5ec5ad7affa34e37d0cd40ac3d9d87
parent51049f6e3f05d70660e2458ad3bb302a3721b751
iio: adc: exynos_adc: fix OF populate on driver rebind

[ Upstream commit ea6b4feba85e996e840e0b661bc42793df6eb701 ]

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: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
[ Adjust context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/exynos_adc.c