summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-06 10:44:43 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 10:44:43 -0800
commit3ada8b7e980dac7cc42937d42d90ee51b19204fe (patch)
tree6c23e272997cd5b68459c5a92a4490504f1c4be7 /block/genhd.c
parent4383fc3d9a98759a1ec3c57a30781e95a4cfcfa9 (diff)
downloadlinux-3.10-3ada8b7e980dac7cc42937d42d90ee51b19204fe.tar.gz
linux-3.10-3ada8b7e980dac7cc42937d42d90ee51b19204fe.tar.bz2
linux-3.10-3ada8b7e980dac7cc42937d42d90ee51b19204fe.zip
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/genhd.c')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index d84a7df1e2a..397960cf26a 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1084,7 +1084,7 @@ dev_t blk_lookup_devt(const char *name, int partno)
struct gendisk *disk = dev_to_disk(dev);
struct hd_struct *part;
- if (strcmp(dev->bus_id, name))
+ if (strcmp(dev_name(dev), name))
continue;
part = disk_get_part(disk, partno);