aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc/pdc_stable.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-20 11:13:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:40 -0500
commitc10997f6575f476ff38442fa18fd4a0d80345f9d (patch)
tree9b2bb7e647bd39fb80f23d7a6b34bf2587d660a7 /drivers/parisc/pdc_stable.c
parent38a382ae5dd4f4d04e3046816b0a41836094e538 (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/parisc/pdc_stable.c')
-rw-r--r--drivers/parisc/pdc_stable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c
index 87bc6b73b249..de34aa9d3136 100644
--- a/drivers/parisc/pdc_stable.c
+++ b/drivers/parisc/pdc_stable.c
@@ -1026,7 +1026,7 @@ pdcs_unregister_pathentries(void)
1026 for (i = 0; (entry = pdcspath_entries[i]); i++) { 1026 for (i = 0; (entry = pdcspath_entries[i]); i++) {
1027 read_lock(&entry->rw_lock); 1027 read_lock(&entry->rw_lock);
1028 if (entry->ready >= 2) 1028 if (entry->ready >= 2)
1029 kobject_unregister(&entry->kobj); 1029 kobject_put(&entry->kobj);
1030 read_unlock(&entry->rw_lock); 1030 read_unlock(&entry->rw_lock);
1031 } 1031 }
1032} 1032}
@@ -1086,7 +1086,7 @@ fail_pdcsreg:
1086 kset_unregister(paths_kset); 1086 kset_unregister(paths_kset);
1087 1087
1088fail_ksetreg: 1088fail_ksetreg:
1089 kobject_unregister(stable_kobj); 1089 kobject_put(stable_kobj);
1090 1090
1091fail_firmreg: 1091fail_firmreg:
1092 printk(KERN_INFO PDCS_PREFIX " bailing out\n"); 1092 printk(KERN_INFO PDCS_PREFIX " bailing out\n");
@@ -1098,7 +1098,7 @@ pdc_stable_exit(void)
1098{ 1098{
1099 pdcs_unregister_pathentries(); 1099 pdcs_unregister_pathentries();
1100 kset_unregister(paths_kset); 1100 kset_unregister(paths_kset);
1101 kobject_unregister(stable_kobj); 1101 kobject_put(stable_kobj);
1102} 1102}
1103 1103
1104 1104