* Mike Frysinger | 2011-06-09 16:53:03 [-0400]: >> Isn't something exploding if we try to unregister a driver which was >> never registered? > >that's a good point. i dont know the answer. you probably would get at least >a warning at runtime. Yup: |------------[ cut here ]------------ |WARNING: at drivers/base/driver.c:262 driver_unregister+0x6c/0x80() |Hardware name: Bochs |Unexpected driver unregister! |Modules linked in: dummy_hcd(+) udc_core usb_storage usbhid uhci_hcd ehci_hcd usbcore |Pid: 1786, comm: modprobe Not tainted 3.0.0-rc2-00207-ge7d3cd6-dirty #171 |Call Trace: | [<8102ac32>] warn_slowpath_common+0x72/0xa0 | [<811ebecc>] ? driver_unregister+0x6c/0x80 | [<811ebecc>] ? driver_unregister+0x6c/0x80 | [<8102ad03>] warn_slowpath_fmt+0x33/0x40 | [<811ebecc>] driver_unregister+0x6c/0x80 | [<811ed1e0>] platform_driver_unregister+0x10/0x20 | [<88d0a02c>] init+0x2c/0x72 [dummy_hcd] | [<81001205>] do_one_initcall+0x35/0x170 | [<88d0a000>] ? 0x88d09fff | [<8105d18b>] sys_init_module+0x9b/0x1f0 | [<810b3274>] ? sys_close+0x74/0xa0 | [<8130a945>] syscall_call+0x7/0xb |---[ end trace aa58878a4408b604 ]--- And this does not look like a good example. >-mike Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html