]> Git Repo - linux.git/blobdiff - drivers/usb/mon/mon_main.c
i2c: Provide compatibility links for i2c adapters
[linux.git] / drivers / usb / mon / mon_main.c
index 442d8076b201d10284c1928fdaa1a3891f5ae027..5e0ab4201c00894def56d3c182461173c89344c7 100644 (file)
@@ -361,12 +361,12 @@ static int __init mon_init(void)
        }
        // MOD_INC_USE_COUNT(which_module?);
 
-       usb_register_notify(&mon_nb);
 
        mutex_lock(&usb_bus_list_lock);
        list_for_each_entry (ubus, &usb_bus_list, bus_list) {
                mon_bus_init(ubus);
        }
+       usb_register_notify(&mon_nb);
        mutex_unlock(&usb_bus_list_lock);
        return 0;
 
This page took 0.031371 seconds and 4 git commands to generate.