The patch titled drivers/base: Platform notify needs to occur before drivers attach to the device has been removed from the -mm tree. Its filename is drivers-base-platform-notify-needs-to-occur.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: drivers/base: Platform notify needs to occur before drivers attach to the device From: Brian Walsh <brian@xxxxxxxx> The platform_notify call for Arm and PPC architectures needs to be called before the driver attaches to the device. The problem only presents itself when hotplugging certain devices while the driver is already loaded. Signed-off-by: Brian Walsh <brian@xxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/base/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff -puN drivers/base/core.c~drivers-base-platform-notify-needs-to-occur drivers/base/core.c --- a/drivers/base/core.c~drivers-base-platform-notify-needs-to-occur +++ a/drivers/base/core.c @@ -397,6 +397,10 @@ int device_add(struct device *dev) if ((error = kobject_add(&dev->kobj))) goto Error; + /* notify platform of device entry */ + if (platform_notify) + platform_notify(dev); + dev->uevent_attr.attr.name = "uevent"; dev->uevent_attr.attr.mode = S_IWUSR; if (dev->driver) @@ -456,10 +460,6 @@ int device_add(struct device *dev) list_add_tail(&dev->node, &dev->class->devices); up(&dev->class->sem); } - - /* notify platform of device entry */ - if (platform_notify) - platform_notify(dev); Done: kfree(class_name); put_device(dev); _ Patches currently in -mm which might be from brian@xxxxxxxx are mtd-maps-ixp4xx-partition-parsing.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