[PATCH] kobject/hotplug split - usb cris
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 19 Apr 2005 04:57:37 +0000 (21:57 -0700)
committerGreg KH <greg@press.kroah.org>
Tue, 19 Apr 2005 04:57:37 +0000 (21:57 -0700)
kobject_add() and kobject_del() don't emit hotplug events anymore.
We need to do it ourselves now.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/hc_crisv10.c

index 4b12be822bd4e4ba16ca32c8a33779c705a1a13b..376f8a034f658856b91be40d79ed6f8a7ad108da 100644 (file)
@@ -4396,6 +4396,7 @@ static int __init etrax_usb_hc_init(void)
         device_initialize(&fake_device);
         kobject_set_name(&fake_device.kobj, "etrax_usb");
         kobject_add(&fake_device.kobj);
         device_initialize(&fake_device);
         kobject_set_name(&fake_device.kobj, "etrax_usb");
         kobject_add(&fake_device.kobj);
+        kobject_hotplug(&fake_device.kobj, KOBJ_ADD);
         hc->bus->controller = &fake_device;
        usb_register_bus(hc->bus);
 
         hc->bus->controller = &fake_device;
        usb_register_bus(hc->bus);