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/block/pktcdvd.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/block/pktcdvd.c')
-rw-r--r-- | drivers/block/pktcdvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index d1ee38361e0b..e9de1712e5a0 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -130,7 +130,7 @@ static struct pktcdvd_kobj* pkt_kobj_create(struct pktcdvd_device *pd, | |||
130 | static void pkt_kobj_remove(struct pktcdvd_kobj *p) | 130 | static void pkt_kobj_remove(struct pktcdvd_kobj *p) |
131 | { | 131 | { |
132 | if (p) | 132 | if (p) |
133 | kobject_unregister(&p->kobj); | 133 | kobject_put(&p->kobj); |
134 | } | 134 | } |
135 | /* | 135 | /* |
136 | * default release function for pktcdvd kernel objects. | 136 | * default release function for pktcdvd kernel objects. |