• Patrick Mochel's avatar
    kobjects: minor updates · 03929468
    Patrick Mochel authored
    - check if subsystem is NULL during subsys_get().
    
    - Don't increment parent's reference count before we check if we have a 
      valid kobject during kobject_add()
    
    - Do kobject_add() in subsys_register(), instead of kobject_register(), 
      since we've already done kobject_init(). 
    03929468
kobject.c 5.45 KB