X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=block%2Fgenhd.c;h=397960cf26afcd61fc7c2bba2365944c8485c767;hb=2034563ca323ee45f37a32911550d21c1f1e9626;hp=d84a7df1e2a094e663f7e1683bb941f1c3562e2d;hpb=db5e53fbf0abf5cadc83be57032242e5e7c6c394;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);