The patch titled Call platform_notify_remove later has been added to the -mm tree. Its filename is call-platform_notify_remove-later.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Call platform_notify_remove later From: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx> Cc: "Brown, Len" <len.brown@xxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/base/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/base/core.c~call-platform_notify_remove-later drivers/base/core.c --- a/drivers/base/core.c~call-platform_notify_remove-later +++ a/drivers/base/core.c @@ -670,12 +670,13 @@ void device_del(struct device * dev) device_remove_groups(dev); device_remove_attrs(dev); + bus_remove_device(dev); + /* Notify the platform of the removal, in case they * need to do anything... */ if (platform_notify_remove) platform_notify_remove(dev); - bus_remove_device(dev); device_pm_remove(dev); kobject_uevent(&dev->kobj, KOBJ_REMOVE); bus_delete_device(dev); _ Patches currently in -mm which might be from benh@xxxxxxxxxxxxxxxxxxx are origin.patch reintroduce-nodes_span_other_nodes-for-powerpc.patch slab-do-not-fallback-to-nodes-that-have-not-been-bootstrapped-yet.patch macintosh-mangle-caps-lock-events-on-adb-keyboards.patch git-agpgart.patch call-platform_notify_remove-later.patch shared-page-table-for-hugetlb-page-v4.patch htlb-forget-rss-with-pt-sharing.patch generic-bug-implementation.patch generic-bug-for-i386.patch generic-bug-for-x86-64.patch use-generic-bug-for-ppc.patch bug-test-1.patch log2-implement-a-general-integer-log2-facility-in-the-kernel.patch log2-alter-roundup_pow_of_two-so-that-it-can-use-a-ilog2-on-a-constant.patch log2-alter-get_order-so-that-it-can-make-use-of-ilog2-on-a-constant.patch log2-provide-ilog2-fallbacks-for-powerpc.patch add-missing-page_copy-export-for-ppc-and-powerpc.patch ioremap-balanced-with-iounmap-for-drivers-video-platinumfb.patch ioremap-balanced-with-iounmap-for-drivers-video-offb.patch ioremap-balanced-with-iounmap-for-drivers-video-macfb.patch ioremap-balanced-with-iounmap-for-drivers-video-atyfb_base.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html