linux/drivers/of
Grant Likely 75f353b613 of/platform: Fix of_platform_device_destroy iteration of devices
of_platform_destroy does not work properly, since the tree
population test was iterating on all devices having as its parent
the given platform device.

The check was intended to check whether any other platform or amba
devices created by of_platform_populate were still populated, but
instead checked for every kind of device. This is wrong, since platform
devices typically create a subsystem regular device and set themselves
as parents.

Instead, go ahead and call the unregister functions for any devices
created with of_platform_populate. The driver core will take care of
unbinding drivers, and drivers are responsible for getting rid of any
child devices that weren't created by of_platform_populate.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2014-07-07 13:33:46 +01:00
..
testcase-data of: Add a testcase for of_find_node_by_path() 2014-05-23 11:35:30 +09:00
address.c Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into next 2014-06-05 15:57:04 -07:00
base.c OF: fix of_find_node_by_path() assumption that of_allnodes is root 2014-06-16 13:31:44 -05:00
device.c
fdt_address.c of/fdt: add FDT address translation support 2014-05-20 15:19:25 -05:00
fdt.c of: Check for phys_addr_t overflows in early_init_dt_add_memory_arch 2014-06-26 17:28:28 +01:00
irq.c of/irq: do irq resolution in platform_get_irq_byname() 2014-05-23 11:40:25 +09:00
Kconfig of/fdt: Convert FDT functions to use libfdt 2014-04-30 00:59:15 -05:00
Makefile of/fdt: add FDT address translation support 2014-05-20 15:19:25 -05:00
of_mdio.c of: mdio: fixup of_phy_register_fixed_link parsing of new bindings 2014-06-22 21:35:14 -07:00
of_mtd.c
of_net.c
of_pci_irq.c of_pci_irq: kill useless variable in of_irq_parse_pci() 2014-05-27 12:13:34 +01:00
of_pci.c
of_private.h
of_reserved_mem.c of: align RESERVEDMEM_OF_DECLARE function callbacks to other callbacks 2014-05-20 14:25:21 -05:00
pdt.c
platform.c of/platform: Fix of_platform_device_destroy iteration of devices 2014-07-07 13:33:46 +01:00
selftest.c of: Add a testcase for of_find_node_by_path() 2014-05-23 11:35:30 +09:00