aboutsummaryrefslogtreecommitdiffstats
path: root/block/bsg.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-06 13:44:43 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:44:43 -0500
commit3ada8b7e980dac7cc42937d42d90ee51b19204fe (patch)
tree6c23e272997cd5b68459c5a92a4490504f1c4be7 /block/bsg.c
parent4383fc3d9a98759a1ec3c57a30781e95a4cfcfa9 (diff)
block: struct device - replace bus_id with dev_name(), dev_set_name()
Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block/bsg.c')
-rw-r--r--block/bsg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/bsg.c b/block/bsg.c
index e73e50daf3d0..d414bb5607e8 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -42,7 +42,7 @@ struct bsg_device {
42 int done_cmds; 42 int done_cmds;
43 wait_queue_head_t wq_done; 43 wait_queue_head_t wq_done;
44 wait_queue_head_t wq_free; 44 wait_queue_head_t wq_free;
45 char name[BUS_ID_SIZE]; 45 char name[20];
46 int max_queue; 46 int max_queue;
47 unsigned long flags; 47 unsigned long flags;
48}; 48};
@@ -781,7 +781,7 @@ static struct bsg_device *bsg_add_device(struct inode *inode,
781 mutex_lock(&bsg_mutex); 781 mutex_lock(&bsg_mutex);
782 hlist_add_head(&bd->dev_list, bsg_dev_idx_hash(iminor(inode))); 782 hlist_add_head(&bd->dev_list, bsg_dev_idx_hash(iminor(inode)));
783 783
784 strncpy(bd->name, rq->bsg_dev.class_dev->bus_id, sizeof(bd->name) - 1); 784 strncpy(bd->name, dev_name(rq->bsg_dev.class_dev), sizeof(bd->name) - 1);
785 dprintk("bound to <%s>, max queue %d\n", 785 dprintk("bound to <%s>, max queue %d\n",
786 format_dev_t(buf, inode->i_rdev), bd->max_queue); 786 format_dev_t(buf, inode->i_rdev), bd->max_queue);
787 787
@@ -992,7 +992,7 @@ int bsg_register_queue(struct request_queue *q, struct device *parent,
992 if (name) 992 if (name)
993 devname = name; 993 devname = name;
994 else 994 else
995 devname = parent->bus_id; 995 devname = dev_name(parent);
996 996
997 /* 997 /*
998 * we need a proper transport to send commands, not a stacked device 998 * we need a proper transport to send commands, not a stacked device