diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-20 11:13:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:40 -0500 |
commit | c10997f6575f476ff38442fa18fd4a0d80345f9d (patch) | |
tree | 9b2bb7e647bd39fb80f23d7a6b34bf2587d660a7 /drivers/infiniband/core/sysfs.c | |
parent | 38a382ae5dd4f4d04e3046816b0a41836094e538 (diff) |
Kobject: convert drivers/* from kobject_unregister() to kobject_put()
There is no need for kobject_unregister() anymore, thanks to Kay's
kobject cleanup changes, so replace all instances of it with
kobject_put().
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/infiniband/core/sysfs.c')
-rw-r--r-- | drivers/infiniband/core/sysfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index aa81129704cf..c864ef70fdf9 100644 --- a/drivers/infiniband/core/sysfs.c +++ b/drivers/infiniband/core/sysfs.c | |||
@@ -714,7 +714,7 @@ err_put: | |||
714 | sysfs_remove_group(p, &pma_group); | 714 | sysfs_remove_group(p, &pma_group); |
715 | sysfs_remove_group(p, &port->pkey_group); | 715 | sysfs_remove_group(p, &port->pkey_group); |
716 | sysfs_remove_group(p, &port->gid_group); | 716 | sysfs_remove_group(p, &port->gid_group); |
717 | kobject_unregister(p); | 717 | kobject_put(p); |
718 | } | 718 | } |
719 | } | 719 | } |
720 | 720 | ||
@@ -738,10 +738,10 @@ void ib_device_unregister_sysfs(struct ib_device *device) | |||
738 | sysfs_remove_group(p, &pma_group); | 738 | sysfs_remove_group(p, &pma_group); |
739 | sysfs_remove_group(p, &port->pkey_group); | 739 | sysfs_remove_group(p, &port->pkey_group); |
740 | sysfs_remove_group(p, &port->gid_group); | 740 | sysfs_remove_group(p, &port->gid_group); |
741 | kobject_unregister(p); | 741 | kobject_put(p); |
742 | } | 742 | } |
743 | 743 | ||
744 | kobject_unregister(device->ports_parent); | 744 | kobject_put(device->ports_parent); |
745 | class_device_unregister(&device->class_dev); | 745 | class_device_unregister(&device->class_dev); |
746 | } | 746 | } |
747 | 747 | ||