Skip to contentSkip to conversation

kobject/hotplug split - usb cris

PATCH In review Kay Sievers 1 participant 1 message Mar 18, 2005 USB

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 kobject/hotplug split - usb cris

kobject_add() and kobject_del() don't emit hotplug events anymore. We need to do it ourselves now.

===== drivers/usb/host/hc_crisv10.c 1.7 vs edited =====

drivers/usb/host/hc_crisv10.c +1 -0
@@ -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);
+        kobject_hotplug(&fake_device.kobj, KOBJ_ADD);
         hc->bus->controller = &fake_device;
 	usb_register_bus(hc->bus);