Commit ea6b4fe
iio: adc: exynos_adc: fix OF populate on driver rebind
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>1 parent 441ac29 commit ea6b4fe
1 file changed
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | 543 | | |
553 | 544 | | |
554 | 545 | | |
| |||
660 | 651 | | |
661 | 652 | | |
662 | 653 | | |
663 | | - | |
664 | | - | |
| 654 | + | |
665 | 655 | | |
666 | 656 | | |
667 | 657 | | |
| |||
681 | 671 | | |
682 | 672 | | |
683 | 673 | | |
684 | | - | |
685 | | - | |
| 674 | + | |
686 | 675 | | |
687 | 676 | | |
688 | 677 | | |
| |||
0 commit comments