diff options
Diffstat (limited to 'drivers/s390/block/dasd_devmap.c')
-rw-r--r-- | drivers/s390/block/dasd_devmap.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c index cd3335c1c307..921443b01d16 100644 --- a/drivers/s390/block/dasd_devmap.c +++ b/drivers/s390/block/dasd_devmap.c | |||
@@ -515,9 +515,9 @@ dasd_devmap_from_cdev(struct ccw_device *cdev) | |||
515 | { | 515 | { |
516 | struct dasd_devmap *devmap; | 516 | struct dasd_devmap *devmap; |
517 | 517 | ||
518 | devmap = dasd_find_busid(cdev->dev.bus_id); | 518 | devmap = dasd_find_busid(dev_name(&cdev->dev)); |
519 | if (IS_ERR(devmap)) | 519 | if (IS_ERR(devmap)) |
520 | devmap = dasd_add_busid(cdev->dev.bus_id, | 520 | devmap = dasd_add_busid(dev_name(&cdev->dev), |
521 | DASD_FEATURE_DEFAULT); | 521 | DASD_FEATURE_DEFAULT); |
522 | return devmap; | 522 | return devmap; |
523 | } | 523 | } |
@@ -584,7 +584,7 @@ dasd_delete_device(struct dasd_device *device) | |||
584 | unsigned long flags; | 584 | unsigned long flags; |
585 | 585 | ||
586 | /* First remove device pointer from devmap. */ | 586 | /* First remove device pointer from devmap. */ |
587 | devmap = dasd_find_busid(device->cdev->dev.bus_id); | 587 | devmap = dasd_find_busid(dev_name(&device->cdev->dev)); |
588 | BUG_ON(IS_ERR(devmap)); | 588 | BUG_ON(IS_ERR(devmap)); |
589 | spin_lock(&dasd_devmap_lock); | 589 | spin_lock(&dasd_devmap_lock); |
590 | if (devmap->device != device) { | 590 | if (devmap->device != device) { |
@@ -674,7 +674,7 @@ dasd_ro_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
674 | struct dasd_devmap *devmap; | 674 | struct dasd_devmap *devmap; |
675 | int ro_flag; | 675 | int ro_flag; |
676 | 676 | ||
677 | devmap = dasd_find_busid(dev->bus_id); | 677 | devmap = dasd_find_busid(dev_name(dev)); |
678 | if (!IS_ERR(devmap)) | 678 | if (!IS_ERR(devmap)) |
679 | ro_flag = (devmap->features & DASD_FEATURE_READONLY) != 0; | 679 | ro_flag = (devmap->features & DASD_FEATURE_READONLY) != 0; |
680 | else | 680 | else |
@@ -723,7 +723,7 @@ dasd_erplog_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
723 | struct dasd_devmap *devmap; | 723 | struct dasd_devmap *devmap; |
724 | int erplog; | 724 | int erplog; |
725 | 725 | ||
726 | devmap = dasd_find_busid(dev->bus_id); | 726 | devmap = dasd_find_busid(dev_name(dev)); |
727 | if (!IS_ERR(devmap)) | 727 | if (!IS_ERR(devmap)) |
728 | erplog = (devmap->features & DASD_FEATURE_ERPLOG) != 0; | 728 | erplog = (devmap->features & DASD_FEATURE_ERPLOG) != 0; |
729 | else | 729 | else |
@@ -770,7 +770,7 @@ dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
770 | struct dasd_devmap *devmap; | 770 | struct dasd_devmap *devmap; |
771 | int use_diag; | 771 | int use_diag; |
772 | 772 | ||
773 | devmap = dasd_find_busid(dev->bus_id); | 773 | devmap = dasd_find_busid(dev_name(dev)); |
774 | if (!IS_ERR(devmap)) | 774 | if (!IS_ERR(devmap)) |
775 | use_diag = (devmap->features & DASD_FEATURE_USEDIAG) != 0; | 775 | use_diag = (devmap->features & DASD_FEATURE_USEDIAG) != 0; |
776 | else | 776 | else |
@@ -876,7 +876,7 @@ dasd_alias_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
876 | struct dasd_devmap *devmap; | 876 | struct dasd_devmap *devmap; |
877 | int alias; | 877 | int alias; |
878 | 878 | ||
879 | devmap = dasd_find_busid(dev->bus_id); | 879 | devmap = dasd_find_busid(dev_name(dev)); |
880 | spin_lock(&dasd_devmap_lock); | 880 | spin_lock(&dasd_devmap_lock); |
881 | if (IS_ERR(devmap) || strlen(devmap->uid.vendor) == 0) { | 881 | if (IS_ERR(devmap) || strlen(devmap->uid.vendor) == 0) { |
882 | spin_unlock(&dasd_devmap_lock); | 882 | spin_unlock(&dasd_devmap_lock); |
@@ -899,7 +899,7 @@ dasd_vendor_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
899 | struct dasd_devmap *devmap; | 899 | struct dasd_devmap *devmap; |
900 | char *vendor; | 900 | char *vendor; |
901 | 901 | ||
902 | devmap = dasd_find_busid(dev->bus_id); | 902 | devmap = dasd_find_busid(dev_name(dev)); |
903 | spin_lock(&dasd_devmap_lock); | 903 | spin_lock(&dasd_devmap_lock); |
904 | if (!IS_ERR(devmap) && strlen(devmap->uid.vendor) > 0) | 904 | if (!IS_ERR(devmap) && strlen(devmap->uid.vendor) > 0) |
905 | vendor = devmap->uid.vendor; | 905 | vendor = devmap->uid.vendor; |
@@ -924,7 +924,7 @@ dasd_uid_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
924 | char ua_string[3]; | 924 | char ua_string[3]; |
925 | struct dasd_uid *uid; | 925 | struct dasd_uid *uid; |
926 | 926 | ||
927 | devmap = dasd_find_busid(dev->bus_id); | 927 | devmap = dasd_find_busid(dev_name(dev)); |
928 | spin_lock(&dasd_devmap_lock); | 928 | spin_lock(&dasd_devmap_lock); |
929 | if (IS_ERR(devmap) || strlen(devmap->uid.vendor) == 0) { | 929 | if (IS_ERR(devmap) || strlen(devmap->uid.vendor) == 0) { |
930 | spin_unlock(&dasd_devmap_lock); | 930 | spin_unlock(&dasd_devmap_lock); |
@@ -972,7 +972,7 @@ dasd_eer_show(struct device *dev, struct device_attribute *attr, char *buf) | |||
972 | struct dasd_devmap *devmap; | 972 | struct dasd_devmap *devmap; |
973 | int eer_flag; | 973 | int eer_flag; |
974 | 974 | ||
975 | devmap = dasd_find_busid(dev->bus_id); | 975 | devmap = dasd_find_busid(dev_name(dev)); |
976 | if (!IS_ERR(devmap) && devmap->device) | 976 | if (!IS_ERR(devmap) && devmap->device) |
977 | eer_flag = dasd_eer_enabled(devmap->device); | 977 | eer_flag = dasd_eer_enabled(devmap->device); |
978 | else | 978 | else |
@@ -1034,7 +1034,7 @@ dasd_get_uid(struct ccw_device *cdev, struct dasd_uid *uid) | |||
1034 | { | 1034 | { |
1035 | struct dasd_devmap *devmap; | 1035 | struct dasd_devmap *devmap; |
1036 | 1036 | ||
1037 | devmap = dasd_find_busid(cdev->dev.bus_id); | 1037 | devmap = dasd_find_busid(dev_name(&cdev->dev)); |
1038 | if (IS_ERR(devmap)) | 1038 | if (IS_ERR(devmap)) |
1039 | return PTR_ERR(devmap); | 1039 | return PTR_ERR(devmap); |
1040 | spin_lock(&dasd_devmap_lock); | 1040 | spin_lock(&dasd_devmap_lock); |
@@ -1057,7 +1057,7 @@ dasd_set_uid(struct ccw_device *cdev, struct dasd_uid *uid) | |||
1057 | { | 1057 | { |
1058 | struct dasd_devmap *devmap; | 1058 | struct dasd_devmap *devmap; |
1059 | 1059 | ||
1060 | devmap = dasd_find_busid(cdev->dev.bus_id); | 1060 | devmap = dasd_find_busid(dev_name(&cdev->dev)); |
1061 | if (IS_ERR(devmap)) | 1061 | if (IS_ERR(devmap)) |
1062 | return PTR_ERR(devmap); | 1062 | return PTR_ERR(devmap); |
1063 | 1063 | ||
@@ -1077,7 +1077,7 @@ dasd_get_feature(struct ccw_device *cdev, int feature) | |||
1077 | { | 1077 | { |
1078 | struct dasd_devmap *devmap; | 1078 | struct dasd_devmap *devmap; |
1079 | 1079 | ||
1080 | devmap = dasd_find_busid(cdev->dev.bus_id); | 1080 | devmap = dasd_find_busid(dev_name(&cdev->dev)); |
1081 | if (IS_ERR(devmap)) | 1081 | if (IS_ERR(devmap)) |
1082 | return PTR_ERR(devmap); | 1082 | return PTR_ERR(devmap); |
1083 | 1083 | ||
@@ -1093,7 +1093,7 @@ dasd_set_feature(struct ccw_device *cdev, int feature, int flag) | |||
1093 | { | 1093 | { |
1094 | struct dasd_devmap *devmap; | 1094 | struct dasd_devmap *devmap; |
1095 | 1095 | ||
1096 | devmap = dasd_find_busid(cdev->dev.bus_id); | 1096 | devmap = dasd_find_busid(dev_name(&cdev->dev)); |
1097 | if (IS_ERR(devmap)) | 1097 | if (IS_ERR(devmap)) |
1098 | return PTR_ERR(devmap); | 1098 | return PTR_ERR(devmap); |
1099 | 1099 | ||