diff options
Diffstat (limited to 'drivers/parisc/pdc_stable.c')
-rw-r--r-- | drivers/parisc/pdc_stable.c | 6 |
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 | ||
1088 | fail_ksetreg: | 1088 | fail_ksetreg: |
1089 | kobject_unregister(stable_kobj); | 1089 | kobject_put(stable_kobj); |
1090 | 1090 | ||
1091 | fail_firmreg: | 1091 | fail_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 | ||