Commit 437a871
iio: adc: exynos_adc: fix OF populate on driver rebind
[ Upstream commit ea6b4fe ]
Since commit c6e126d ("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: c6e126d ("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>1 parent 629be44 commit 437a871
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | 724 | | |
730 | | - | |
731 | | - | |
732 | 725 | | |
733 | 726 | | |
734 | 727 | | |
| |||
929 | 922 | | |
930 | 923 | | |
931 | 924 | | |
932 | | - | |
933 | | - | |
| 925 | + | |
934 | 926 | | |
935 | 927 | | |
936 | 928 | | |
| |||
959 | 951 | | |
960 | 952 | | |
961 | 953 | | |
962 | | - | |
963 | | - | |
| 954 | + | |
964 | 955 | | |
965 | 956 | | |
966 | 957 | | |
| |||
0 commit comments