diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-06 13:44:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:43 -0500 |
commit | 3ada8b7e980dac7cc42937d42d90ee51b19204fe (patch) | |
tree | 6c23e272997cd5b68459c5a92a4490504f1c4be7 /block/genhd.c | |
parent | 4383fc3d9a98759a1ec3c57a30781e95a4cfcfa9 (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/genhd.c')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index d84a7df1e2a0..397960cf26af 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -1084,7 +1084,7 @@ dev_t blk_lookup_devt(const char *name, int partno) | |||
1084 | struct gendisk *disk = dev_to_disk(dev); | 1084 | struct gendisk *disk = dev_to_disk(dev); |
1085 | struct hd_struct *part; | 1085 | struct hd_struct *part; |
1086 | 1086 | ||
1087 | if (strcmp(dev->bus_id, name)) | 1087 | if (strcmp(dev_name(dev), name)) |
1088 | continue; | 1088 | continue; |
1089 | 1089 | ||
1090 | part = disk_get_part(disk, partno); | 1090 | part = disk_get_part(disk, partno); |