]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Driver core: Call platform_notify_remove later
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Nov 2006 03:46:14 +0000 (19:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:52:01 +0000 (14:52 -0800)
commit289535334646796fe41f199718e4a731f7411a92
tree7536d19daaf603df4d672ab52ea8ad8dd7f29d63
parent465ae641e4a3e5028aa9c85d3843259aa28a22ce
Driver core: Call platform_notify_remove later

Move the call to platform_notify_remove() to after the call to
bus_remove_device(), where it belongs.  It's bogus to notify the platform
of removal while drivers are still attached to the device and possibly
still operating since the platform might use this callback to tear down
some resources used by the driver (ACPI bits, iommu table, ...)

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c