linux-bl808/drivers/base
Jeffy Chen 2ec1615017 driver core: Move device_links_purge() after bus_remove_device()
The current ordering of code in device_del() triggers a WARN_ON()
in device_links_purge(), because of an unexpected link status.

The device_links_unbind_consumers() call in device_release_driver()
has to take place before device_links_purge() for the status of all
links to be correct, so move the device_links_purge() call in
device_del() after the invocation of bus_remove_device() which calls
device_release_driver().

Fixes: 9ed9895370 (driver core: Functional dependencies tracking support)
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-20 16:33:13 +02:00
..
power PM / OPP: Call notifier without holding opp_table->lock 2017-09-26 00:44:32 +02:00
regmap regmap: regmap-w1: Fix build troubles 2017-07-17 15:53:00 +01:00
test driver-core: pr_err() strings should end with newlines 2017-10-20 15:42:54 +02:00
arch_topology.c arch_topology: Fix section miss match warning due to free_raw_capacity() 2017-10-20 16:32:39 +02:00
attribute_container.c
base.h driver core: make device_{add|remove}_groups() public 2017-07-22 11:59:23 +02:00
bus.c driver core: bus: Fix a potential double free 2017-08-31 18:57:30 +02:00
cacheinfo.c
class.c
component.c
container.c
core.c driver core: Move device_links_purge() after bus_remove_device() 2017-10-20 16:33:13 +02:00
cpu.c treewide: make "nr_cpu_ids" unsigned 2017-09-08 18:26:48 -07:00
dd.c initcall_debug: add deferred probe times 2017-08-03 17:48:49 -07:00
devcoredump.c
devres.c
devtmpfs.c
dma-coherent.c dma-coherent: fix rmem_dma_device_init regression 2017-09-17 08:20:02 -07:00
dma-contiguous.c
dma-mapping.c dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags 2017-09-01 11:59:17 +02:00
driver.c
firmware.c
firmware_class.c Revert "firmware: add sanity check on shutdown/suspend" 2017-09-10 21:19:06 -07:00
hypervisor.c
init.c
isa.c
Kconfig firmware: Restore support for built-in firmware 2017-09-16 10:58:48 -07:00
Makefile
map.c
memory.c mm, memory_hotplug: remove zone restrictions 2017-09-06 17:27:25 -07:00
module.c
node.c mm: only display online cpus of the numa node 2017-10-13 16:18:32 -07:00
pinctrl.c
platform-msi.c
platform.c driver core: platform: Don't read past the end of "driver_override" buffer 2017-09-18 17:16:47 +02:00
property.c ACPI: properties: Align return codes of __acpi_node_get_property_reference() 2017-10-11 21:15:44 +02:00
soc.c
syscore.c
topology.c base: topology: constify attribute_group structures. 2017-08-28 17:49:22 +02:00
transport_class.c