Commit:     289535334646796fe41f199718e4a731f7411a92
Parent:     465ae641e4a3e5028aa9c85d3843259aa28a22ce
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 8 19:46:14 2006 -0800
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Dec 1 14:52:01 2006 -0800

    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 <[EMAIL PROTECTED]>
    Cc: "Brown, Len" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/base/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index f544adc..5d11bbd 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -682,6 +682,7 @@ void device_del(struct device * dev)
        device_remove_file(dev, &dev->uevent_attr);
+       bus_remove_device(dev);
        /* Notify the platform of the removal, in case they
         * need to do anything...
@@ -691,7 +692,6 @@ void device_del(struct device * dev)
        if (dev->bus)
                                             BUS_NOTIFY_DEL_DEVICE, dev);
-       bus_remove_device(dev);
        kobject_uevent(&dev->kobj, KOBJ_REMOVE);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to