X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=block%2Fgenhd.c;h=397960cf26afcd61fc7c2bba2365944c8485c767;hb=4c33d2dc34f50e5d5436e62cd99395859f157a19;hp=d84a7df1e2a094e663f7e1683bb941f1c3562e2d;hpb=db200df0b3530f673d8e9f5bd535e9e10305842a;p=linux-2.6-omap-h63xx.git 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);