block: struct device - replace bus_id with dev_name(), dev_set_name()

Cc: Jens Axboe <[email protected]>
Signed-off-by: Kay Sievers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Kay Sievers 2009-01-06 10:44:43 -08:00 • committed by Greg Kroah-Hartman
commit 3ada8b7e98
3 changed files with 7 additions and 12 deletions

View file

@ -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);