Kobject: change drivers/infiniband to use kobject_init_and_add

Stop using kobject_register, as this way we can control the sending of
the uevent properly, after everything is properly initialized.

Cc: Roland Dreier <rolandd@cisco.com>
Cc: Sean Hefty <mshefty@ichips.intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Greg Kroah-Hartman
2007-12-17 15:54:39 -04:00
parent 901195ed7f
commit 35be068198
2 changed files with 10 additions and 27 deletions

View File

@ -1026,7 +1026,7 @@ struct ib_device {
struct module *owner;
struct class_device class_dev;
struct kobject ports_parent;
struct kobject *ports_parent;
struct list_head port_list;
enum {