mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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:
parent
4383fc3d9a
commit
3ada8b7e98
3 changed files with 7 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue