]> git.baikalelectronics.ru Git - kernel.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)
commit2b297798598de489fa42de1bb3f04ef72e9c5fe6
tree7536d19daaf603df4d672ab52ea8ad8dd7f29d63
parenta2e02ad7b8fa4e531b6479b56a60e319dadf1fe7
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