Commit 089d42b0 authored by kay.sievers@vrfy.org's avatar kay.sievers@vrfy.org Committed by Greg KH

[PATCH] kobject/hotplug split - usb cris

kobject_add() and kobject_del() don't emit hotplug events anymore.
We need to do it ourselves now.
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e57cd73e
...@@ -4396,6 +4396,7 @@ static int __init etrax_usb_hc_init(void) ...@@ -4396,6 +4396,7 @@ static int __init etrax_usb_hc_init(void)
device_initialize(&fake_device); device_initialize(&fake_device);
kobject_set_name(&fake_device.kobj, "etrax_usb"); kobject_set_name(&fake_device.kobj, "etrax_usb");
kobject_add(&fake_device.kobj); kobject_add(&fake_device.kobj);
kobject_hotplug(&fake_device.kobj, KOBJ_ADD);
hc->bus->controller = &fake_device; hc->bus->controller = &fake_device;
usb_register_bus(hc->bus); usb_register_bus(hc->bus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment