diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-09-12 18:06:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:51:02 -0400 |
commit | 7e7654a92a5a75a350cc3458389bc76273498f6a (patch) | |
tree | c8eae3d72f87b4b4fbf94446b4f0993c2a08b000 /block/bsg.c | |
parent | 19c38de88a80913351fcacefdb461cc0b585fa87 (diff) |
cdev: remove unneeded setting of cdev names
struct cdev does not need the kobject name to be set, as it is never
used. This patch fixes up the few places it is set.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'block/bsg.c')
-rw-r--r-- | block/bsg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/block/bsg.c b/block/bsg.c index ed2646827234..b8ddfc66f210 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -1010,10 +1010,7 @@ unlock: | |||
1010 | } | 1010 | } |
1011 | EXPORT_SYMBOL_GPL(bsg_register_queue); | 1011 | EXPORT_SYMBOL_GPL(bsg_register_queue); |
1012 | 1012 | ||
1013 | static struct cdev bsg_cdev = { | 1013 | static struct cdev bsg_cdev; |
1014 | .kobj = {.name = "bsg", }, | ||
1015 | .owner = THIS_MODULE, | ||
1016 | }; | ||
1017 | 1014 | ||
1018 | static int __init bsg_init(void) | 1015 | static int __init bsg_init(void) |
1019 | { | 1016 | { |