summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-09-12 15:06:57 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 14:51:02 -0700
commit7e7654a92a5a75a350cc3458389bc76273498f6a (patch)
treec8eae3d72f87b4b4fbf94446b4f0993c2a08b000 /block
parent19c38de88a80913351fcacefdb461cc0b585fa87 (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')
-rw-r--r--block/bsg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/block/bsg.c b/block/bsg.c
index ed264682723..b8ddfc66f21 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -1010,10 +1010,7 @@ unlock:
}
EXPORT_SYMBOL_GPL(bsg_register_queue);
-static struct cdev bsg_cdev = {
- .kobj = {.name = "bsg", },
- .owner = THIS_MODULE,
-};
+static struct cdev bsg_cdev;
static int __init bsg_init(void)
{