aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
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 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);