diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-10 15:33:09 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-10-10 15:33:49 -0400 |
commit | 2a0217d5c7d22d6dd28f8ae5d20b06d24dc426b8 (patch) | |
tree | 0a7d60ac06dbc234d48da5a5b2ce8fa186a20182 | |
parent | e4a1afaeb1d9ebc09f46d8b229ac96116974b1b8 (diff) |
[S390] bus_id -> dev_name conversions
bus_id -> dev_name() conversions in s390 code.
[cornelia.huck@de.ibm.com: minor adaptions]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
29 files changed, 207 insertions, 191 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index acb78017e7d0..0a225ccda026 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -215,7 +215,7 @@ static int dasd_state_known_to_basic(struct dasd_device *device) | |||
215 | return rc; | 215 | return rc; |
216 | } | 216 | } |
217 | /* register 'device' debug area, used for all DBF_DEV_XXX calls */ | 217 | /* register 'device' debug area, used for all DBF_DEV_XXX calls */ |
218 | device->debug_area = debug_register(device->cdev->dev.bus_id, 1, 1, | 218 | device->debug_area = debug_register(dev_name(&device->cdev->dev), 1, 1, |
219 | 8 * sizeof(long)); | 219 | 8 * sizeof(long)); |
220 | debug_register_view(device->debug_area, &debug_sprintf_view); | 220 | debug_register_view(device->debug_area, &debug_sprintf_view); |
221 | debug_set_level(device->debug_area, DBF_WARNING); | 221 | debug_set_level(device->debug_area, DBF_WARNING); |
@@ -933,7 +933,7 @@ static void dasd_handle_killed_request(struct ccw_device *cdev, | |||
933 | MESSAGE(KERN_DEBUG, | 933 | MESSAGE(KERN_DEBUG, |
934 | "invalid status in handle_killed_request: " | 934 | "invalid status in handle_killed_request: " |
935 | "bus_id %s, status %02x", | 935 | "bus_id %s, status %02x", |
936 | cdev->dev.bus_id, cqr->status); | 936 | dev_name(&cdev->dev), cqr->status); |
937 | return; | 937 | return; |
938 | } | 938 | } |
939 | 939 | ||
@@ -942,7 +942,7 @@ static void dasd_handle_killed_request(struct ccw_device *cdev, | |||
942 | device != dasd_device_from_cdev_locked(cdev) || | 942 | device != dasd_device_from_cdev_locked(cdev) || |
943 | strncmp(device->discipline->ebcname, (char *) &cqr->magic, 4)) { | 943 | strncmp(device->discipline->ebcname, (char *) &cqr->magic, 4)) { |
944 | MESSAGE(KERN_DEBUG, "invalid device in request: bus_id %s", | 944 | MESSAGE(KERN_DEBUG, "invalid device in request: bus_id %s", |
945 | cdev->dev.bus_id); | 945 | dev_name(&cdev->dev)); |
946 | return; | 946 | return; |
947 | } | 947 | } |
948 | 948 | ||
@@ -982,11 +982,11 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, | |||
982 | break; | 982 | break; |
983 | case -ETIMEDOUT: | 983 | case -ETIMEDOUT: |
984 | printk(KERN_WARNING"%s(%s): request timed out\n", | 984 | printk(KERN_WARNING"%s(%s): request timed out\n", |
985 | __func__, cdev->dev.bus_id); | 985 | __func__, dev_name(&cdev->dev)); |
986 | break; | 986 | break; |
987 | default: | 987 | default: |
988 | printk(KERN_WARNING"%s(%s): unknown error %ld\n", | 988 | printk(KERN_WARNING"%s(%s): unknown error %ld\n", |
989 | __func__, cdev->dev.bus_id, PTR_ERR(irb)); | 989 | __func__, dev_name(&cdev->dev), PTR_ERR(irb)); |
990 | } | 990 | } |
991 | dasd_handle_killed_request(cdev, intparm); | 991 | dasd_handle_killed_request(cdev, intparm); |
992 | return; | 992 | return; |
@@ -995,7 +995,7 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, | |||
995 | now = get_clock(); | 995 | now = get_clock(); |
996 | 996 | ||
997 | DBF_EVENT(DBF_ERR, "Interrupt: bus_id %s CS/DS %04x ip %08x", | 997 | DBF_EVENT(DBF_ERR, "Interrupt: bus_id %s CS/DS %04x ip %08x", |
998 | cdev->dev.bus_id, ((irb->scsw.cmd.cstat << 8) | | 998 | dev_name(&cdev->dev), ((irb->scsw.cmd.cstat << 8) | |
999 | irb->scsw.cmd.dstat), (unsigned int) intparm); | 999 | irb->scsw.cmd.dstat), (unsigned int) intparm); |
1000 | 1000 | ||
1001 | /* check for unsolicited interrupts */ | 1001 | /* check for unsolicited interrupts */ |
@@ -1019,7 +1019,7 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, | |||
1019 | if (!device || | 1019 | if (!device || |
1020 | strncmp(device->discipline->ebcname, (char *) &cqr->magic, 4)) { | 1020 | strncmp(device->discipline->ebcname, (char *) &cqr->magic, 4)) { |
1021 | MESSAGE(KERN_DEBUG, "invalid device in request: bus_id %s", | 1021 | MESSAGE(KERN_DEBUG, "invalid device in request: bus_id %s", |
1022 | cdev->dev.bus_id); | 1022 | dev_name(&cdev->dev)); |
1023 | return; | 1023 | return; |
1024 | } | 1024 | } |
1025 | 1025 | ||
@@ -1037,7 +1037,7 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, | |||
1037 | if (cqr->status != DASD_CQR_IN_IO) { | 1037 | if (cqr->status != DASD_CQR_IN_IO) { |
1038 | MESSAGE(KERN_DEBUG, | 1038 | MESSAGE(KERN_DEBUG, |
1039 | "invalid status: bus_id %s, status %02x", | 1039 | "invalid status: bus_id %s, status %02x", |
1040 | cdev->dev.bus_id, cqr->status); | 1040 | dev_name(&cdev->dev), cqr->status); |
1041 | return; | 1041 | return; |
1042 | } | 1042 | } |
1043 | DBF_DEV_EVENT(DBF_DEBUG, device, "Int: CS/DS 0x%04x for cqr %p", | 1043 | DBF_DEV_EVENT(DBF_DEBUG, device, "Int: CS/DS 0x%04x for cqr %p", |
@@ -2134,14 +2134,14 @@ int dasd_generic_probe(struct ccw_device *cdev, | |||
2134 | if (ret) { | 2134 | if (ret) { |
2135 | printk(KERN_WARNING | 2135 | printk(KERN_WARNING |
2136 | "dasd_generic_probe: could not set ccw-device options " | 2136 | "dasd_generic_probe: could not set ccw-device options " |
2137 | "for %s\n", cdev->dev.bus_id); | 2137 | "for %s\n", dev_name(&cdev->dev)); |
2138 | return ret; | 2138 | return ret; |
2139 | } | 2139 | } |
2140 | ret = dasd_add_sysfs_files(cdev); | 2140 | ret = dasd_add_sysfs_files(cdev); |
2141 | if (ret) { | 2141 | if (ret) { |
2142 | printk(KERN_WARNING | 2142 | printk(KERN_WARNING |
2143 | "dasd_generic_probe: could not add sysfs entries " | 2143 | "dasd_generic_probe: could not add sysfs entries " |
2144 | "for %s\n", cdev->dev.bus_id); | 2144 | "for %s\n", dev_name(&cdev->dev)); |
2145 | return ret; | 2145 | return ret; |
2146 | } | 2146 | } |
2147 | cdev->handler = &dasd_int_handler; | 2147 | cdev->handler = &dasd_int_handler; |
@@ -2152,13 +2152,13 @@ int dasd_generic_probe(struct ccw_device *cdev, | |||
2152 | * initial probe. | 2152 | * initial probe. |
2153 | */ | 2153 | */ |
2154 | if ((dasd_get_feature(cdev, DASD_FEATURE_INITIAL_ONLINE) > 0 ) || | 2154 | if ((dasd_get_feature(cdev, DASD_FEATURE_INITIAL_ONLINE) > 0 ) || |
2155 | (dasd_autodetect && dasd_busid_known(cdev->dev.bus_id) != 0)) | 2155 | (dasd_autodetect && dasd_busid_known(dev_name(&cdev->dev)) != 0)) |
2156 | ret = ccw_device_set_online(cdev); | 2156 | ret = ccw_device_set_online(cdev); |
2157 | if (ret) | 2157 | if (ret) |
2158 | printk(KERN_WARNING | 2158 | printk(KERN_WARNING |
2159 | "dasd_generic_probe: could not initially " | 2159 | "dasd_generic_probe: could not initially " |
2160 | "online ccw-device %s; return code: %d\n", | 2160 | "online ccw-device %s; return code: %d\n", |
2161 | cdev->dev.bus_id, ret); | 2161 | dev_name(&cdev->dev), ret); |
2162 | return 0; | 2162 | return 0; |
2163 | } | 2163 | } |
2164 | 2164 | ||
@@ -2224,7 +2224,7 @@ int dasd_generic_set_online(struct ccw_device *cdev, | |||
2224 | printk (KERN_WARNING | 2224 | printk (KERN_WARNING |
2225 | "dasd_generic couldn't online device %s " | 2225 | "dasd_generic couldn't online device %s " |
2226 | "- discipline DIAG not available\n", | 2226 | "- discipline DIAG not available\n", |
2227 | cdev->dev.bus_id); | 2227 | dev_name(&cdev->dev)); |
2228 | dasd_delete_device(device); | 2228 | dasd_delete_device(device); |
2229 | return -ENODEV; | 2229 | return -ENODEV; |
2230 | } | 2230 | } |
@@ -2248,7 +2248,7 @@ int dasd_generic_set_online(struct ccw_device *cdev, | |||
2248 | printk (KERN_WARNING | 2248 | printk (KERN_WARNING |
2249 | "dasd_generic couldn't online device %s " | 2249 | "dasd_generic couldn't online device %s " |
2250 | "with discipline %s rc=%i\n", | 2250 | "with discipline %s rc=%i\n", |
2251 | cdev->dev.bus_id, discipline->name, rc); | 2251 | dev_name(&cdev->dev), discipline->name, rc); |
2252 | module_put(discipline->owner); | 2252 | module_put(discipline->owner); |
2253 | module_put(base_discipline->owner); | 2253 | module_put(base_discipline->owner); |
2254 | dasd_delete_device(device); | 2254 | dasd_delete_device(device); |
@@ -2259,7 +2259,7 @@ int dasd_generic_set_online(struct ccw_device *cdev, | |||
2259 | if (device->state <= DASD_STATE_KNOWN) { | 2259 | if (device->state <= DASD_STATE_KNOWN) { |
2260 | printk (KERN_WARNING | 2260 | printk (KERN_WARNING |
2261 | "dasd_generic discipline not found for %s\n", | 2261 | "dasd_generic discipline not found for %s\n", |
2262 | cdev->dev.bus_id); | 2262 | dev_name(&cdev->dev)); |
2263 | rc = -ENODEV; | 2263 | rc = -ENODEV; |
2264 | dasd_set_target_state(device, DASD_STATE_NEW); | 2264 | dasd_set_target_state(device, DASD_STATE_NEW); |
2265 | if (device->block) | 2265 | if (device->block) |
@@ -2267,7 +2267,7 @@ int dasd_generic_set_online(struct ccw_device *cdev, | |||
2267 | dasd_delete_device(device); | 2267 | dasd_delete_device(device); |
2268 | } else | 2268 | } else |
2269 | pr_debug("dasd_generic device %s found\n", | 2269 | pr_debug("dasd_generic device %s found\n", |
2270 | cdev->dev.bus_id); | 2270 | dev_name(&cdev->dev)); |
2271 | 2271 | ||
2272 | /* FIXME: we have to wait for the root device but we don't want | 2272 | /* FIXME: we have to wait for the root device but we don't want |
2273 | * to wait for each single device but for all at once. */ | 2273 | * to wait for each single device but for all at once. */ |
diff --git a/drivers/s390/block/dasd_3990_erp.c b/drivers/s390/block/dasd_3990_erp.c index 5c6e6f331cb0..b8f9c00633f3 100644 --- a/drivers/s390/block/dasd_3990_erp.c +++ b/drivers/s390/block/dasd_3990_erp.c | |||
@@ -1397,7 +1397,7 @@ static struct dasd_ccw_req *dasd_3990_erp_inspect_alias( | |||
1397 | DEV_MESSAGE(KERN_ERR, cqr->startdev, | 1397 | DEV_MESSAGE(KERN_ERR, cqr->startdev, |
1398 | "ERP on alias device for request %p," | 1398 | "ERP on alias device for request %p," |
1399 | " recover on base device %s", cqr, | 1399 | " recover on base device %s", cqr, |
1400 | cqr->block->base->cdev->dev.bus_id); | 1400 | dev_name(&cqr->block->base->cdev->dev)); |
1401 | } | 1401 | } |
1402 | dasd_eckd_reset_ccw_to_base_io(cqr); | 1402 | dasd_eckd_reset_ccw_to_base_io(cqr); |
1403 | erp->startdev = cqr->block->base; | 1403 | erp->startdev = cqr->block->base; |
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 | ||
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index 773b3fe275b2..72d3970f11a4 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -84,7 +84,7 @@ dasd_eckd_probe (struct ccw_device *cdev) | |||
84 | if (ret) { | 84 | if (ret) { |
85 | printk(KERN_WARNING | 85 | printk(KERN_WARNING |
86 | "dasd_eckd_probe: could not set ccw-device options " | 86 | "dasd_eckd_probe: could not set ccw-device options " |
87 | "for %s\n", cdev->dev.bus_id); | 87 | "for %s\n", dev_name(&cdev->dev)); |
88 | return ret; | 88 | return ret; |
89 | } | 89 | } |
90 | ret = dasd_generic_probe(cdev, &dasd_eckd_discipline); | 90 | ret = dasd_generic_probe(cdev, &dasd_eckd_discipline); |
@@ -2145,13 +2145,13 @@ static void dasd_eckd_dump_sense(struct dasd_device *device, | |||
2145 | /* dump the sense data */ | 2145 | /* dump the sense data */ |
2146 | len = sprintf(page, KERN_ERR PRINTK_HEADER | 2146 | len = sprintf(page, KERN_ERR PRINTK_HEADER |
2147 | " I/O status report for device %s:\n", | 2147 | " I/O status report for device %s:\n", |
2148 | device->cdev->dev.bus_id); | 2148 | dev_name(&device->cdev->dev)); |
2149 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER | 2149 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER |
2150 | " in req: %p CS: 0x%02X DS: 0x%02X\n", req, | 2150 | " in req: %p CS: 0x%02X DS: 0x%02X\n", req, |
2151 | irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); | 2151 | irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); |
2152 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER | 2152 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER |
2153 | " device %s: Failing CCW: %p\n", | 2153 | " device %s: Failing CCW: %p\n", |
2154 | device->cdev->dev.bus_id, | 2154 | dev_name(&device->cdev->dev), |
2155 | (void *) (addr_t) irb->scsw.cmd.cpa); | 2155 | (void *) (addr_t) irb->scsw.cmd.cpa); |
2156 | if (irb->esw.esw0.erw.cons) { | 2156 | if (irb->esw.esw0.erw.cons) { |
2157 | for (sl = 0; sl < 4; sl++) { | 2157 | for (sl = 0; sl < 4; sl++) { |
diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c index bf512ac75b9e..892e2878d61b 100644 --- a/drivers/s390/block/dasd_eer.c +++ b/drivers/s390/block/dasd_eer.c | |||
@@ -309,7 +309,8 @@ static void dasd_eer_write_standard_trigger(struct dasd_device *device, | |||
309 | do_gettimeofday(&tv); | 309 | do_gettimeofday(&tv); |
310 | header.tv_sec = tv.tv_sec; | 310 | header.tv_sec = tv.tv_sec; |
311 | header.tv_usec = tv.tv_usec; | 311 | header.tv_usec = tv.tv_usec; |
312 | strncpy(header.busid, device->cdev->dev.bus_id, DASD_EER_BUSID_SIZE); | 312 | strncpy(header.busid, dev_name(&device->cdev->dev), |
313 | DASD_EER_BUSID_SIZE); | ||
313 | 314 | ||
314 | spin_lock_irqsave(&bufferlock, flags); | 315 | spin_lock_irqsave(&bufferlock, flags); |
315 | list_for_each_entry(eerb, &bufferlist, list) { | 316 | list_for_each_entry(eerb, &bufferlist, list) { |
@@ -349,7 +350,8 @@ static void dasd_eer_write_snss_trigger(struct dasd_device *device, | |||
349 | do_gettimeofday(&tv); | 350 | do_gettimeofday(&tv); |
350 | header.tv_sec = tv.tv_sec; | 351 | header.tv_sec = tv.tv_sec; |
351 | header.tv_usec = tv.tv_usec; | 352 | header.tv_usec = tv.tv_usec; |
352 | strncpy(header.busid, device->cdev->dev.bus_id, DASD_EER_BUSID_SIZE); | 353 | strncpy(header.busid, dev_name(&device->cdev->dev), |
354 | DASD_EER_BUSID_SIZE); | ||
353 | 355 | ||
354 | spin_lock_irqsave(&bufferlock, flags); | 356 | spin_lock_irqsave(&bufferlock, flags); |
355 | list_for_each_entry(eerb, &bufferlist, list) { | 357 | list_for_each_entry(eerb, &bufferlist, list) { |
diff --git a/drivers/s390/block/dasd_fba.c b/drivers/s390/block/dasd_fba.c index aa0c533423a5..93d9b6452a94 100644 --- a/drivers/s390/block/dasd_fba.c +++ b/drivers/s390/block/dasd_fba.c | |||
@@ -451,13 +451,13 @@ dasd_fba_dump_sense(struct dasd_device *device, struct dasd_ccw_req * req, | |||
451 | } | 451 | } |
452 | len = sprintf(page, KERN_ERR PRINTK_HEADER | 452 | len = sprintf(page, KERN_ERR PRINTK_HEADER |
453 | " I/O status report for device %s:\n", | 453 | " I/O status report for device %s:\n", |
454 | device->cdev->dev.bus_id); | 454 | dev_name(&device->cdev->dev)); |
455 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER | 455 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER |
456 | " in req: %p CS: 0x%02X DS: 0x%02X\n", req, | 456 | " in req: %p CS: 0x%02X DS: 0x%02X\n", req, |
457 | irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); | 457 | irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); |
458 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER | 458 | len += sprintf(page + len, KERN_ERR PRINTK_HEADER |
459 | " device %s: Failing CCW: %p\n", | 459 | " device %s: Failing CCW: %p\n", |
460 | device->cdev->dev.bus_id, | 460 | dev_name(&device->cdev->dev), |
461 | (void *) (addr_t) irb->scsw.cmd.cpa); | 461 | (void *) (addr_t) irb->scsw.cmd.cpa); |
462 | if (irb->esw.esw0.erw.cons) { | 462 | if (irb->esw.esw0.erw.cons) { |
463 | for (sl = 0; sl < 4; sl++) { | 463 | for (sl = 0; sl < 4; sl++) { |
diff --git a/drivers/s390/block/dasd_int.h b/drivers/s390/block/dasd_int.h index 31ecaa4a40e4..489d5fe488fb 100644 --- a/drivers/s390/block/dasd_int.h +++ b/drivers/s390/block/dasd_int.h | |||
@@ -126,7 +126,7 @@ do { \ | |||
126 | #define DEV_MESSAGE(d_loglevel,d_device,d_string,d_args...)\ | 126 | #define DEV_MESSAGE(d_loglevel,d_device,d_string,d_args...)\ |
127 | do { \ | 127 | do { \ |
128 | printk(d_loglevel PRINTK_HEADER " %s: " d_string "\n", \ | 128 | printk(d_loglevel PRINTK_HEADER " %s: " d_string "\n", \ |
129 | d_device->cdev->dev.bus_id, d_args); \ | 129 | dev_name(&d_device->cdev->dev), d_args); \ |
130 | DBF_DEV_EVENT(DBF_ALERT, d_device, d_string, d_args); \ | 130 | DBF_DEV_EVENT(DBF_ALERT, d_device, d_string, d_args); \ |
131 | } while(0) | 131 | } while(0) |
132 | 132 | ||
@@ -140,7 +140,7 @@ do { \ | |||
140 | #define DEV_MESSAGE_LOG(d_loglevel,d_device,d_string,d_args...)\ | 140 | #define DEV_MESSAGE_LOG(d_loglevel,d_device,d_string,d_args...)\ |
141 | do { \ | 141 | do { \ |
142 | printk(d_loglevel PRINTK_HEADER " %s: " d_string "\n", \ | 142 | printk(d_loglevel PRINTK_HEADER " %s: " d_string "\n", \ |
143 | d_device->cdev->dev.bus_id, d_args); \ | 143 | dev_name(&d_device->cdev->dev), d_args); \ |
144 | } while(0) | 144 | } while(0) |
145 | 145 | ||
146 | #define MESSAGE_LOG(d_loglevel,d_string,d_args...)\ | 146 | #define MESSAGE_LOG(d_loglevel,d_string,d_args...)\ |
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c index e3b5c4d3036e..9088de84b45d 100644 --- a/drivers/s390/block/dasd_proc.c +++ b/drivers/s390/block/dasd_proc.c | |||
@@ -67,7 +67,7 @@ dasd_devices_show(struct seq_file *m, void *v) | |||
67 | return 0; | 67 | return 0; |
68 | } | 68 | } |
69 | /* Print device number. */ | 69 | /* Print device number. */ |
70 | seq_printf(m, "%s", device->cdev->dev.bus_id); | 70 | seq_printf(m, "%s", dev_name(&device->cdev->dev)); |
71 | /* Print discipline string. */ | 71 | /* Print discipline string. */ |
72 | if (device != NULL && device->discipline != NULL) | 72 | if (device != NULL && device->discipline != NULL) |
73 | seq_printf(m, "(%s)", device->discipline->name); | 73 | seq_printf(m, "(%s)", device->discipline->name); |
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index 9481e4a3f76e..2aca79e952b0 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c | |||
@@ -91,7 +91,7 @@ static struct rw_semaphore dcssblk_devices_sem; | |||
91 | static void | 91 | static void |
92 | dcssblk_release_segment(struct device *dev) | 92 | dcssblk_release_segment(struct device *dev) |
93 | { | 93 | { |
94 | PRINT_DEBUG("segment release fn called for %s\n", dev->bus_id); | 94 | PRINT_DEBUG("segment release fn called for %s\n", dev_name(dev)); |
95 | kfree(container_of(dev, struct dcssblk_dev_info, dev)); | 95 | kfree(container_of(dev, struct dcssblk_dev_info, dev)); |
96 | module_put(THIS_MODULE); | 96 | module_put(THIS_MODULE); |
97 | } | 97 | } |
@@ -602,7 +602,8 @@ dcssblk_make_request(struct request_queue *q, struct bio *bio) | |||
602 | case SEG_TYPE_SC: | 602 | case SEG_TYPE_SC: |
603 | /* cannot write to these segments */ | 603 | /* cannot write to these segments */ |
604 | if (bio_data_dir(bio) == WRITE) { | 604 | if (bio_data_dir(bio) == WRITE) { |
605 | PRINT_WARN("rejecting write to ro segment %s\n", dev_info->dev.bus_id); | 605 | PRINT_WARN("rejecting write to ro segment %s\n", |
606 | dev_name(&dev_info->dev)); | ||
606 | goto fail; | 607 | goto fail; |
607 | } | 608 | } |
608 | } | 609 | } |
diff --git a/drivers/s390/char/tape_3590.c b/drivers/s390/char/tape_3590.c index 839987618ffd..4005c44a404c 100644 --- a/drivers/s390/char/tape_3590.c +++ b/drivers/s390/char/tape_3590.c | |||
@@ -910,7 +910,7 @@ tape_3590_erp_swap(struct tape_device *device, struct tape_request *request, | |||
910 | * should proceed with the new tape... this | 910 | * should proceed with the new tape... this |
911 | * should probably be done in user space! | 911 | * should probably be done in user space! |
912 | */ | 912 | */ |
913 | PRINT_WARN("(%s): Swap Tape Device!\n", device->cdev->dev.bus_id); | 913 | PRINT_WARN("(%s): Swap Tape Device!\n", dev_name(&device->cdev->dev)); |
914 | return tape_3590_erp_basic(device, request, irb, -EIO); | 914 | return tape_3590_erp_basic(device, request, irb, -EIO); |
915 | } | 915 | } |
916 | 916 | ||
@@ -1003,40 +1003,43 @@ tape_3590_print_mim_msg_f0(struct tape_device *device, struct irb *irb) | |||
1003 | /* Exception Message */ | 1003 | /* Exception Message */ |
1004 | switch (sense->fmt.f70.emc) { | 1004 | switch (sense->fmt.f70.emc) { |
1005 | case 0x02: | 1005 | case 0x02: |
1006 | PRINT_WARN("(%s): Data degraded\n", device->cdev->dev.bus_id); | 1006 | PRINT_WARN("(%s): Data degraded\n", |
1007 | dev_name(&device->cdev->dev)); | ||
1007 | break; | 1008 | break; |
1008 | case 0x03: | 1009 | case 0x03: |
1009 | PRINT_WARN("(%s): Data degraded in partion %i\n", | 1010 | PRINT_WARN("(%s): Data degraded in partion %i\n", |
1010 | device->cdev->dev.bus_id, sense->fmt.f70.mp); | 1011 | dev_name(&device->cdev->dev), sense->fmt.f70.mp); |
1011 | break; | 1012 | break; |
1012 | case 0x04: | 1013 | case 0x04: |
1013 | PRINT_WARN("(%s): Medium degraded\n", device->cdev->dev.bus_id); | 1014 | PRINT_WARN("(%s): Medium degraded\n", |
1015 | dev_name(&device->cdev->dev)); | ||
1014 | break; | 1016 | break; |
1015 | case 0x05: | 1017 | case 0x05: |
1016 | PRINT_WARN("(%s): Medium degraded in partition %i\n", | 1018 | PRINT_WARN("(%s): Medium degraded in partition %i\n", |
1017 | device->cdev->dev.bus_id, sense->fmt.f70.mp); | 1019 | dev_name(&device->cdev->dev), sense->fmt.f70.mp); |
1018 | break; | 1020 | break; |
1019 | case 0x06: | 1021 | case 0x06: |
1020 | PRINT_WARN("(%s): Block 0 Error\n", device->cdev->dev.bus_id); | 1022 | PRINT_WARN("(%s): Block 0 Error\n", |
1023 | dev_name(&device->cdev->dev)); | ||
1021 | break; | 1024 | break; |
1022 | case 0x07: | 1025 | case 0x07: |
1023 | PRINT_WARN("(%s): Medium Exception 0x%02x\n", | 1026 | PRINT_WARN("(%s): Medium Exception 0x%02x\n", |
1024 | device->cdev->dev.bus_id, sense->fmt.f70.md); | 1027 | dev_name(&device->cdev->dev), sense->fmt.f70.md); |
1025 | break; | 1028 | break; |
1026 | default: | 1029 | default: |
1027 | PRINT_WARN("(%s): MIM ExMsg: 0x%02x\n", | 1030 | PRINT_WARN("(%s): MIM ExMsg: 0x%02x\n", |
1028 | device->cdev->dev.bus_id, sense->fmt.f70.emc); | 1031 | dev_name(&device->cdev->dev), sense->fmt.f70.emc); |
1029 | break; | 1032 | break; |
1030 | } | 1033 | } |
1031 | /* Service Message */ | 1034 | /* Service Message */ |
1032 | switch (sense->fmt.f70.smc) { | 1035 | switch (sense->fmt.f70.smc) { |
1033 | case 0x02: | 1036 | case 0x02: |
1034 | PRINT_WARN("(%s): Reference Media maintenance procedure %i\n", | 1037 | PRINT_WARN("(%s): Reference Media maintenance procedure %i\n", |
1035 | device->cdev->dev.bus_id, sense->fmt.f70.md); | 1038 | dev_name(&device->cdev->dev), sense->fmt.f70.md); |
1036 | break; | 1039 | break; |
1037 | default: | 1040 | default: |
1038 | PRINT_WARN("(%s): MIM ServiceMsg: 0x%02x\n", | 1041 | PRINT_WARN("(%s): MIM ServiceMsg: 0x%02x\n", |
1039 | device->cdev->dev.bus_id, sense->fmt.f70.smc); | 1042 | dev_name(&device->cdev->dev), sense->fmt.f70.smc); |
1040 | break; | 1043 | break; |
1041 | } | 1044 | } |
1042 | } | 1045 | } |
@@ -1054,101 +1057,101 @@ tape_3590_print_io_sim_msg_f1(struct tape_device *device, struct irb *irb) | |||
1054 | switch (sense->fmt.f71.emc) { | 1057 | switch (sense->fmt.f71.emc) { |
1055 | case 0x01: | 1058 | case 0x01: |
1056 | PRINT_WARN("(%s): Effect of failure is unknown\n", | 1059 | PRINT_WARN("(%s): Effect of failure is unknown\n", |
1057 | device->cdev->dev.bus_id); | 1060 | dev_name(&device->cdev->dev)); |
1058 | break; | 1061 | break; |
1059 | case 0x02: | 1062 | case 0x02: |
1060 | PRINT_WARN("(%s): CU Exception - no performance impact\n", | 1063 | PRINT_WARN("(%s): CU Exception - no performance impact\n", |
1061 | device->cdev->dev.bus_id); | 1064 | dev_name(&device->cdev->dev)); |
1062 | break; | 1065 | break; |
1063 | case 0x03: | 1066 | case 0x03: |
1064 | PRINT_WARN("(%s): CU Exception on channel interface 0x%02x\n", | 1067 | PRINT_WARN("(%s): CU Exception on channel interface 0x%02x\n", |
1065 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1068 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1066 | break; | 1069 | break; |
1067 | case 0x04: | 1070 | case 0x04: |
1068 | PRINT_WARN("(%s): CU Exception on device path 0x%02x\n", | 1071 | PRINT_WARN("(%s): CU Exception on device path 0x%02x\n", |
1069 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1072 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1070 | break; | 1073 | break; |
1071 | case 0x05: | 1074 | case 0x05: |
1072 | PRINT_WARN("(%s): CU Exception on library path 0x%02x\n", | 1075 | PRINT_WARN("(%s): CU Exception on library path 0x%02x\n", |
1073 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1076 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1074 | break; | 1077 | break; |
1075 | case 0x06: | 1078 | case 0x06: |
1076 | PRINT_WARN("(%s): CU Exception on node 0x%02x\n", | 1079 | PRINT_WARN("(%s): CU Exception on node 0x%02x\n", |
1077 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1080 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1078 | break; | 1081 | break; |
1079 | case 0x07: | 1082 | case 0x07: |
1080 | PRINT_WARN("(%s): CU Exception on partition 0x%02x\n", | 1083 | PRINT_WARN("(%s): CU Exception on partition 0x%02x\n", |
1081 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1084 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1082 | break; | 1085 | break; |
1083 | default: | 1086 | default: |
1084 | PRINT_WARN("(%s): SIM ExMsg: 0x%02x\n", | 1087 | PRINT_WARN("(%s): SIM ExMsg: 0x%02x\n", |
1085 | device->cdev->dev.bus_id, sense->fmt.f71.emc); | 1088 | dev_name(&device->cdev->dev), sense->fmt.f71.emc); |
1086 | } | 1089 | } |
1087 | /* Service Message */ | 1090 | /* Service Message */ |
1088 | switch (sense->fmt.f71.smc) { | 1091 | switch (sense->fmt.f71.smc) { |
1089 | case 0x01: | 1092 | case 0x01: |
1090 | PRINT_WARN("(%s): Repair impact is unknown\n", | 1093 | PRINT_WARN("(%s): Repair impact is unknown\n", |
1091 | device->cdev->dev.bus_id); | 1094 | dev_name(&device->cdev->dev)); |
1092 | break; | 1095 | break; |
1093 | case 0x02: | 1096 | case 0x02: |
1094 | PRINT_WARN("(%s): Repair will not impact cu performance\n", | 1097 | PRINT_WARN("(%s): Repair will not impact cu performance\n", |
1095 | device->cdev->dev.bus_id); | 1098 | dev_name(&device->cdev->dev)); |
1096 | break; | 1099 | break; |
1097 | case 0x03: | 1100 | case 0x03: |
1098 | if (sense->fmt.f71.mdf == 0) | 1101 | if (sense->fmt.f71.mdf == 0) |
1099 | PRINT_WARN("(%s): Repair will disable node " | 1102 | PRINT_WARN("(%s): Repair will disable node " |
1100 | "0x%x on CU\n", | 1103 | "0x%x on CU\n", |
1101 | device->cdev->dev.bus_id, | 1104 | dev_name(&device->cdev->dev), |
1102 | sense->fmt.f71.md[1]); | 1105 | sense->fmt.f71.md[1]); |
1103 | else | 1106 | else |
1104 | PRINT_WARN("(%s): Repair will disable nodes " | 1107 | PRINT_WARN("(%s): Repair will disable nodes " |
1105 | "(0x%x-0x%x) on CU\n", | 1108 | "(0x%x-0x%x) on CU\n", |
1106 | device->cdev->dev.bus_id, | 1109 | dev_name(&device->cdev->dev), |
1107 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1110 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1108 | break; | 1111 | break; |
1109 | case 0x04: | 1112 | case 0x04: |
1110 | if (sense->fmt.f71.mdf == 0) | 1113 | if (sense->fmt.f71.mdf == 0) |
1111 | PRINT_WARN("(%s): Repair will disable cannel path " | 1114 | PRINT_WARN("(%s): Repair will disable cannel path " |
1112 | "0x%x on CU\n", | 1115 | "0x%x on CU\n", |
1113 | device->cdev->dev.bus_id, | 1116 | dev_name(&device->cdev->dev), |
1114 | sense->fmt.f71.md[1]); | 1117 | sense->fmt.f71.md[1]); |
1115 | else | 1118 | else |
1116 | PRINT_WARN("(%s): Repair will disable cannel paths " | 1119 | PRINT_WARN("(%s): Repair will disable cannel paths " |
1117 | "(0x%x-0x%x) on CU\n", | 1120 | "(0x%x-0x%x) on CU\n", |
1118 | device->cdev->dev.bus_id, | 1121 | dev_name(&device->cdev->dev), |
1119 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1122 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1120 | break; | 1123 | break; |
1121 | case 0x05: | 1124 | case 0x05: |
1122 | if (sense->fmt.f71.mdf == 0) | 1125 | if (sense->fmt.f71.mdf == 0) |
1123 | PRINT_WARN("(%s): Repair will disable device path " | 1126 | PRINT_WARN("(%s): Repair will disable device path " |
1124 | "0x%x on CU\n", | 1127 | "0x%x on CU\n", |
1125 | device->cdev->dev.bus_id, | 1128 | dev_name(&device->cdev->dev), |
1126 | sense->fmt.f71.md[1]); | 1129 | sense->fmt.f71.md[1]); |
1127 | else | 1130 | else |
1128 | PRINT_WARN("(%s): Repair will disable device paths " | 1131 | PRINT_WARN("(%s): Repair will disable device paths " |
1129 | "(0x%x-0x%x) on CU\n", | 1132 | "(0x%x-0x%x) on CU\n", |
1130 | device->cdev->dev.bus_id, | 1133 | dev_name(&device->cdev->dev), |
1131 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1134 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1132 | break; | 1135 | break; |
1133 | case 0x06: | 1136 | case 0x06: |
1134 | if (sense->fmt.f71.mdf == 0) | 1137 | if (sense->fmt.f71.mdf == 0) |
1135 | PRINT_WARN("(%s): Repair will disable library path " | 1138 | PRINT_WARN("(%s): Repair will disable library path " |
1136 | "0x%x on CU\n", | 1139 | "0x%x on CU\n", |
1137 | device->cdev->dev.bus_id, | 1140 | dev_name(&device->cdev->dev), |
1138 | sense->fmt.f71.md[1]); | 1141 | sense->fmt.f71.md[1]); |
1139 | else | 1142 | else |
1140 | PRINT_WARN("(%s): Repair will disable library paths " | 1143 | PRINT_WARN("(%s): Repair will disable library paths " |
1141 | "(0x%x-0x%x) on CU\n", | 1144 | "(0x%x-0x%x) on CU\n", |
1142 | device->cdev->dev.bus_id, | 1145 | dev_name(&device->cdev->dev), |
1143 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1146 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1144 | break; | 1147 | break; |
1145 | case 0x07: | 1148 | case 0x07: |
1146 | PRINT_WARN("(%s): Repair will disable access to CU\n", | 1149 | PRINT_WARN("(%s): Repair will disable access to CU\n", |
1147 | device->cdev->dev.bus_id); | 1150 | dev_name(&device->cdev->dev)); |
1148 | break; | 1151 | break; |
1149 | default: | 1152 | default: |
1150 | PRINT_WARN("(%s): SIM ServiceMsg: 0x%02x\n", | 1153 | PRINT_WARN("(%s): SIM ServiceMsg: 0x%02x\n", |
1151 | device->cdev->dev.bus_id, sense->fmt.f71.smc); | 1154 | dev_name(&device->cdev->dev), sense->fmt.f71.smc); |
1152 | } | 1155 | } |
1153 | } | 1156 | } |
1154 | 1157 | ||
@@ -1165,104 +1168,104 @@ tape_3590_print_dev_sim_msg_f2(struct tape_device *device, struct irb *irb) | |||
1165 | switch (sense->fmt.f71.emc) { | 1168 | switch (sense->fmt.f71.emc) { |
1166 | case 0x01: | 1169 | case 0x01: |
1167 | PRINT_WARN("(%s): Effect of failure is unknown\n", | 1170 | PRINT_WARN("(%s): Effect of failure is unknown\n", |
1168 | device->cdev->dev.bus_id); | 1171 | dev_name(&device->cdev->dev)); |
1169 | break; | 1172 | break; |
1170 | case 0x02: | 1173 | case 0x02: |
1171 | PRINT_WARN("(%s): DV Exception - no performance impact\n", | 1174 | PRINT_WARN("(%s): DV Exception - no performance impact\n", |
1172 | device->cdev->dev.bus_id); | 1175 | dev_name(&device->cdev->dev)); |
1173 | break; | 1176 | break; |
1174 | case 0x03: | 1177 | case 0x03: |
1175 | PRINT_WARN("(%s): DV Exception on channel interface 0x%02x\n", | 1178 | PRINT_WARN("(%s): DV Exception on channel interface 0x%02x\n", |
1176 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1179 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1177 | break; | 1180 | break; |
1178 | case 0x04: | 1181 | case 0x04: |
1179 | PRINT_WARN("(%s): DV Exception on loader 0x%02x\n", | 1182 | PRINT_WARN("(%s): DV Exception on loader 0x%02x\n", |
1180 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1183 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1181 | break; | 1184 | break; |
1182 | case 0x05: | 1185 | case 0x05: |
1183 | PRINT_WARN("(%s): DV Exception on message display 0x%02x\n", | 1186 | PRINT_WARN("(%s): DV Exception on message display 0x%02x\n", |
1184 | device->cdev->dev.bus_id, sense->fmt.f71.md[0]); | 1187 | dev_name(&device->cdev->dev), sense->fmt.f71.md[0]); |
1185 | break; | 1188 | break; |
1186 | case 0x06: | 1189 | case 0x06: |
1187 | PRINT_WARN("(%s): DV Exception in tape path\n", | 1190 | PRINT_WARN("(%s): DV Exception in tape path\n", |
1188 | device->cdev->dev.bus_id); | 1191 | dev_name(&device->cdev->dev)); |
1189 | break; | 1192 | break; |
1190 | case 0x07: | 1193 | case 0x07: |
1191 | PRINT_WARN("(%s): DV Exception in drive\n", | 1194 | PRINT_WARN("(%s): DV Exception in drive\n", |
1192 | device->cdev->dev.bus_id); | 1195 | dev_name(&device->cdev->dev)); |
1193 | break; | 1196 | break; |
1194 | default: | 1197 | default: |
1195 | PRINT_WARN("(%s): DSIM ExMsg: 0x%02x\n", | 1198 | PRINT_WARN("(%s): DSIM ExMsg: 0x%02x\n", |
1196 | device->cdev->dev.bus_id, sense->fmt.f71.emc); | 1199 | dev_name(&device->cdev->dev), sense->fmt.f71.emc); |
1197 | } | 1200 | } |
1198 | /* Service Message */ | 1201 | /* Service Message */ |
1199 | switch (sense->fmt.f71.smc) { | 1202 | switch (sense->fmt.f71.smc) { |
1200 | case 0x01: | 1203 | case 0x01: |
1201 | PRINT_WARN("(%s): Repair impact is unknown\n", | 1204 | PRINT_WARN("(%s): Repair impact is unknown\n", |
1202 | device->cdev->dev.bus_id); | 1205 | dev_name(&device->cdev->dev)); |
1203 | break; | 1206 | break; |
1204 | case 0x02: | 1207 | case 0x02: |
1205 | PRINT_WARN("(%s): Repair will not impact device performance\n", | 1208 | PRINT_WARN("(%s): Repair will not impact device performance\n", |
1206 | device->cdev->dev.bus_id); | 1209 | dev_name(&device->cdev->dev)); |
1207 | break; | 1210 | break; |
1208 | case 0x03: | 1211 | case 0x03: |
1209 | if (sense->fmt.f71.mdf == 0) | 1212 | if (sense->fmt.f71.mdf == 0) |
1210 | PRINT_WARN("(%s): Repair will disable channel path " | 1213 | PRINT_WARN("(%s): Repair will disable channel path " |
1211 | "0x%x on DV\n", | 1214 | "0x%x on DV\n", |
1212 | device->cdev->dev.bus_id, | 1215 | dev_name(&device->cdev->dev), |
1213 | sense->fmt.f71.md[1]); | 1216 | sense->fmt.f71.md[1]); |
1214 | else | 1217 | else |
1215 | PRINT_WARN("(%s): Repair will disable channel path " | 1218 | PRINT_WARN("(%s): Repair will disable channel path " |
1216 | "(0x%x-0x%x) on DV\n", | 1219 | "(0x%x-0x%x) on DV\n", |
1217 | device->cdev->dev.bus_id, | 1220 | dev_name(&device->cdev->dev), |
1218 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1221 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1219 | break; | 1222 | break; |
1220 | case 0x04: | 1223 | case 0x04: |
1221 | if (sense->fmt.f71.mdf == 0) | 1224 | if (sense->fmt.f71.mdf == 0) |
1222 | PRINT_WARN("(%s): Repair will disable interface 0x%x " | 1225 | PRINT_WARN("(%s): Repair will disable interface 0x%x " |
1223 | "on DV\n", | 1226 | "on DV\n", |
1224 | device->cdev->dev.bus_id, | 1227 | dev_name(&device->cdev->dev), |
1225 | sense->fmt.f71.md[1]); | 1228 | sense->fmt.f71.md[1]); |
1226 | else | 1229 | else |
1227 | PRINT_WARN("(%s): Repair will disable interfaces " | 1230 | PRINT_WARN("(%s): Repair will disable interfaces " |
1228 | "(0x%x-0x%x) on DV\n", | 1231 | "(0x%x-0x%x) on DV\n", |
1229 | device->cdev->dev.bus_id, | 1232 | dev_name(&device->cdev->dev), |
1230 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1233 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1231 | break; | 1234 | break; |
1232 | case 0x05: | 1235 | case 0x05: |
1233 | if (sense->fmt.f71.mdf == 0) | 1236 | if (sense->fmt.f71.mdf == 0) |
1234 | PRINT_WARN("(%s): Repair will disable loader 0x%x " | 1237 | PRINT_WARN("(%s): Repair will disable loader 0x%x " |
1235 | "on DV\n", | 1238 | "on DV\n", |
1236 | device->cdev->dev.bus_id, | 1239 | dev_name(&device->cdev->dev), |
1237 | sense->fmt.f71.md[1]); | 1240 | sense->fmt.f71.md[1]); |
1238 | else | 1241 | else |
1239 | PRINT_WARN("(%s): Repair will disable loader " | 1242 | PRINT_WARN("(%s): Repair will disable loader " |
1240 | "(0x%x-0x%x) on DV\n", | 1243 | "(0x%x-0x%x) on DV\n", |
1241 | device->cdev->dev.bus_id, | 1244 | dev_name(&device->cdev->dev), |
1242 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1245 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1243 | break; | 1246 | break; |
1244 | case 0x07: | 1247 | case 0x07: |
1245 | PRINT_WARN("(%s): Repair will disable access to DV\n", | 1248 | PRINT_WARN("(%s): Repair will disable access to DV\n", |
1246 | device->cdev->dev.bus_id); | 1249 | dev_name(&device->cdev->dev)); |
1247 | break; | 1250 | break; |
1248 | case 0x08: | 1251 | case 0x08: |
1249 | if (sense->fmt.f71.mdf == 0) | 1252 | if (sense->fmt.f71.mdf == 0) |
1250 | PRINT_WARN("(%s): Repair will disable message " | 1253 | PRINT_WARN("(%s): Repair will disable message " |
1251 | "display 0x%x on DV\n", | 1254 | "display 0x%x on DV\n", |
1252 | device->cdev->dev.bus_id, | 1255 | dev_name(&device->cdev->dev), |
1253 | sense->fmt.f71.md[1]); | 1256 | sense->fmt.f71.md[1]); |
1254 | else | 1257 | else |
1255 | PRINT_WARN("(%s): Repair will disable message " | 1258 | PRINT_WARN("(%s): Repair will disable message " |
1256 | "displays (0x%x-0x%x) on DV\n", | 1259 | "displays (0x%x-0x%x) on DV\n", |
1257 | device->cdev->dev.bus_id, | 1260 | dev_name(&device->cdev->dev), |
1258 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); | 1261 | sense->fmt.f71.md[1], sense->fmt.f71.md[2]); |
1259 | break; | 1262 | break; |
1260 | case 0x09: | 1263 | case 0x09: |
1261 | PRINT_WARN("(%s): Clean DV\n", device->cdev->dev.bus_id); | 1264 | PRINT_WARN("(%s): Clean DV\n", dev_name(&device->cdev->dev)); |
1262 | break; | 1265 | break; |
1263 | default: | 1266 | default: |
1264 | PRINT_WARN("(%s): DSIM ServiceMsg: 0x%02x\n", | 1267 | PRINT_WARN("(%s): DSIM ServiceMsg: 0x%02x\n", |
1265 | device->cdev->dev.bus_id, sense->fmt.f71.smc); | 1268 | dev_name(&device->cdev->dev), sense->fmt.f71.smc); |
1266 | } | 1269 | } |
1267 | } | 1270 | } |
1268 | 1271 | ||
@@ -1279,18 +1282,18 @@ tape_3590_print_era_msg(struct tape_device *device, struct irb *irb) | |||
1279 | return; | 1282 | return; |
1280 | if ((sense->mc > 0) && (sense->mc < TAPE_3590_MAX_MSG)) { | 1283 | if ((sense->mc > 0) && (sense->mc < TAPE_3590_MAX_MSG)) { |
1281 | if (tape_3590_msg[sense->mc] != NULL) | 1284 | if (tape_3590_msg[sense->mc] != NULL) |
1282 | PRINT_WARN("(%s): %s\n", device->cdev->dev.bus_id, | 1285 | PRINT_WARN("(%s): %s\n", dev_name(&device->cdev->dev), |
1283 | tape_3590_msg[sense->mc]); | 1286 | tape_3590_msg[sense->mc]); |
1284 | else { | 1287 | else { |
1285 | PRINT_WARN("(%s): Message Code 0x%x\n", | 1288 | PRINT_WARN("(%s): Message Code 0x%x\n", |
1286 | device->cdev->dev.bus_id, sense->mc); | 1289 | dev_name(&device->cdev->dev), sense->mc); |
1287 | } | 1290 | } |
1288 | return; | 1291 | return; |
1289 | } | 1292 | } |
1290 | if (sense->mc == 0xf0) { | 1293 | if (sense->mc == 0xf0) { |
1291 | /* Standard Media Information Message */ | 1294 | /* Standard Media Information Message */ |
1292 | PRINT_WARN("(%s): MIM SEV=%i, MC=%02x, ES=%x/%x, " | 1295 | PRINT_WARN("(%s): MIM SEV=%i, MC=%02x, ES=%x/%x, " |
1293 | "RC=%02x-%04x-%02x\n", device->cdev->dev.bus_id, | 1296 | "RC=%02x-%04x-%02x\n", dev_name(&device->cdev->dev), |
1294 | sense->fmt.f70.sev, sense->mc, | 1297 | sense->fmt.f70.sev, sense->mc, |
1295 | sense->fmt.f70.emc, sense->fmt.f70.smc, | 1298 | sense->fmt.f70.emc, sense->fmt.f70.smc, |
1296 | sense->fmt.f70.refcode, sense->fmt.f70.mid, | 1299 | sense->fmt.f70.refcode, sense->fmt.f70.mid, |
@@ -1302,7 +1305,7 @@ tape_3590_print_era_msg(struct tape_device *device, struct irb *irb) | |||
1302 | /* Standard I/O Subsystem Service Information Message */ | 1305 | /* Standard I/O Subsystem Service Information Message */ |
1303 | PRINT_WARN("(%s): IOSIM SEV=%i, DEVTYPE=3590/%02x, " | 1306 | PRINT_WARN("(%s): IOSIM SEV=%i, DEVTYPE=3590/%02x, " |
1304 | "MC=%02x, ES=%x/%x, REF=0x%04x-0x%04x-0x%04x\n", | 1307 | "MC=%02x, ES=%x/%x, REF=0x%04x-0x%04x-0x%04x\n", |
1305 | device->cdev->dev.bus_id, sense->fmt.f71.sev, | 1308 | dev_name(&device->cdev->dev), sense->fmt.f71.sev, |
1306 | device->cdev->id.dev_model, | 1309 | device->cdev->id.dev_model, |
1307 | sense->mc, sense->fmt.f71.emc, | 1310 | sense->mc, sense->fmt.f71.emc, |
1308 | sense->fmt.f71.smc, sense->fmt.f71.refcode1, | 1311 | sense->fmt.f71.smc, sense->fmt.f71.refcode1, |
@@ -1314,7 +1317,7 @@ tape_3590_print_era_msg(struct tape_device *device, struct irb *irb) | |||
1314 | /* Standard Device Service Information Message */ | 1317 | /* Standard Device Service Information Message */ |
1315 | PRINT_WARN("(%s): DEVSIM SEV=%i, DEVTYPE=3590/%02x, " | 1318 | PRINT_WARN("(%s): DEVSIM SEV=%i, DEVTYPE=3590/%02x, " |
1316 | "MC=%02x, ES=%x/%x, REF=0x%04x-0x%04x-0x%04x\n", | 1319 | "MC=%02x, ES=%x/%x, REF=0x%04x-0x%04x-0x%04x\n", |
1317 | device->cdev->dev.bus_id, sense->fmt.f71.sev, | 1320 | dev_name(&device->cdev->dev), sense->fmt.f71.sev, |
1318 | device->cdev->id.dev_model, | 1321 | device->cdev->id.dev_model, |
1319 | sense->mc, sense->fmt.f71.emc, | 1322 | sense->mc, sense->fmt.f71.emc, |
1320 | sense->fmt.f71.smc, sense->fmt.f71.refcode1, | 1323 | sense->fmt.f71.smc, sense->fmt.f71.refcode1, |
@@ -1327,7 +1330,7 @@ tape_3590_print_era_msg(struct tape_device *device, struct irb *irb) | |||
1327 | return; | 1330 | return; |
1328 | } | 1331 | } |
1329 | PRINT_WARN("(%s): Device Message(%x)\n", | 1332 | PRINT_WARN("(%s): Device Message(%x)\n", |
1330 | device->cdev->dev.bus_id, sense->mc); | 1333 | dev_name(&device->cdev->dev), sense->mc); |
1331 | } | 1334 | } |
1332 | 1335 | ||
1333 | static int tape_3590_crypt_error(struct tape_device *device, | 1336 | static int tape_3590_crypt_error(struct tape_device *device, |
@@ -1336,10 +1339,11 @@ static int tape_3590_crypt_error(struct tape_device *device, | |||
1336 | u8 cu_rc, ekm_rc1; | 1339 | u8 cu_rc, ekm_rc1; |
1337 | u16 ekm_rc2; | 1340 | u16 ekm_rc2; |
1338 | u32 drv_rc; | 1341 | u32 drv_rc; |
1339 | char *bus_id, *sense; | 1342 | const char *bus_id; |
1343 | char *sense; | ||
1340 | 1344 | ||
1341 | sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data; | 1345 | sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data; |
1342 | bus_id = device->cdev->dev.bus_id; | 1346 | bus_id = dev_name(&device->cdev->dev); |
1343 | cu_rc = sense[0]; | 1347 | cu_rc = sense[0]; |
1344 | drv_rc = *((u32*) &sense[5]) & 0xffffff; | 1348 | drv_rc = *((u32*) &sense[5]) & 0xffffff; |
1345 | ekm_rc1 = sense[9]; | 1349 | ekm_rc1 = sense[9]; |
@@ -1440,7 +1444,7 @@ tape_3590_unit_check(struct tape_device *device, struct tape_request *request, | |||
1440 | * "device intervention" is not very meaningfull | 1444 | * "device intervention" is not very meaningfull |
1441 | */ | 1445 | */ |
1442 | PRINT_WARN("(%s): Tape operation when medium not loaded\n", | 1446 | PRINT_WARN("(%s): Tape operation when medium not loaded\n", |
1443 | device->cdev->dev.bus_id); | 1447 | dev_name(&device->cdev->dev)); |
1444 | tape_med_state_set(device, MS_UNLOADED); | 1448 | tape_med_state_set(device, MS_UNLOADED); |
1445 | tape_3590_schedule_work(device, TO_CRYPT_OFF); | 1449 | tape_3590_schedule_work(device, TO_CRYPT_OFF); |
1446 | return tape_3590_erp_basic(device, request, irb, -ENOMEDIUM); | 1450 | return tape_3590_erp_basic(device, request, irb, -ENOMEDIUM); |
@@ -1487,18 +1491,18 @@ tape_3590_unit_check(struct tape_device *device, struct tape_request *request, | |||
1487 | 1491 | ||
1488 | case 0x6020: | 1492 | case 0x6020: |
1489 | PRINT_WARN("(%s): Cartridge of wrong type ?\n", | 1493 | PRINT_WARN("(%s): Cartridge of wrong type ?\n", |
1490 | device->cdev->dev.bus_id); | 1494 | dev_name(&device->cdev->dev)); |
1491 | return tape_3590_erp_basic(device, request, irb, -EMEDIUMTYPE); | 1495 | return tape_3590_erp_basic(device, request, irb, -EMEDIUMTYPE); |
1492 | 1496 | ||
1493 | case 0x8011: | 1497 | case 0x8011: |
1494 | PRINT_WARN("(%s): Another host has reserved the tape device\n", | 1498 | PRINT_WARN("(%s): Another host has reserved the tape device\n", |
1495 | device->cdev->dev.bus_id); | 1499 | dev_name(&device->cdev->dev)); |
1496 | return tape_3590_erp_basic(device, request, irb, -EPERM); | 1500 | return tape_3590_erp_basic(device, request, irb, -EPERM); |
1497 | case 0x8013: | 1501 | case 0x8013: |
1498 | PRINT_WARN("(%s): Another host has privileged access to the " | 1502 | PRINT_WARN("(%s): Another host has privileged access to the " |
1499 | "tape device\n", device->cdev->dev.bus_id); | 1503 | "tape device\n", dev_name(&device->cdev->dev)); |
1500 | PRINT_WARN("(%s): To solve the problem unload the current " | 1504 | PRINT_WARN("(%s): To solve the problem unload the current " |
1501 | "cartridge!\n", device->cdev->dev.bus_id); | 1505 | "cartridge!\n", dev_name(&device->cdev->dev)); |
1502 | return tape_3590_erp_basic(device, request, irb, -EPERM); | 1506 | return tape_3590_erp_basic(device, request, irb, -EPERM); |
1503 | default: | 1507 | default: |
1504 | return tape_3590_erp_basic(device, request, irb, -EIO); | 1508 | return tape_3590_erp_basic(device, request, irb, -EIO); |
diff --git a/drivers/s390/char/tape_block.c b/drivers/s390/char/tape_block.c index 95da72bc17e8..a25b8bf54f41 100644 --- a/drivers/s390/char/tape_block.c +++ b/drivers/s390/char/tape_block.c | |||
@@ -278,7 +278,7 @@ tapeblock_cleanup_device(struct tape_device *device) | |||
278 | 278 | ||
279 | if (!device->blk_data.disk) { | 279 | if (!device->blk_data.disk) { |
280 | PRINT_ERR("(%s): No gendisk to clean up!\n", | 280 | PRINT_ERR("(%s): No gendisk to clean up!\n", |
281 | device->cdev->dev.bus_id); | 281 | dev_name(&device->cdev->dev)); |
282 | goto cleanup_queue; | 282 | goto cleanup_queue; |
283 | } | 283 | } |
284 | 284 | ||
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index 181a5441af16..d7073dbf825c 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c | |||
@@ -215,12 +215,12 @@ tape_med_state_set(struct tape_device *device, enum tape_medium_state newstate) | |||
215 | case MS_UNLOADED: | 215 | case MS_UNLOADED: |
216 | device->tape_generic_status |= GMT_DR_OPEN(~0); | 216 | device->tape_generic_status |= GMT_DR_OPEN(~0); |
217 | PRINT_INFO("(%s): Tape is unloaded\n", | 217 | PRINT_INFO("(%s): Tape is unloaded\n", |
218 | device->cdev->dev.bus_id); | 218 | dev_name(&device->cdev->dev)); |
219 | break; | 219 | break; |
220 | case MS_LOADED: | 220 | case MS_LOADED: |
221 | device->tape_generic_status &= ~GMT_DR_OPEN(~0); | 221 | device->tape_generic_status &= ~GMT_DR_OPEN(~0); |
222 | PRINT_INFO("(%s): Tape has been mounted\n", | 222 | PRINT_INFO("(%s): Tape has been mounted\n", |
223 | device->cdev->dev.bus_id); | 223 | dev_name(&device->cdev->dev)); |
224 | break; | 224 | break; |
225 | default: | 225 | default: |
226 | // print nothing | 226 | // print nothing |
@@ -415,7 +415,7 @@ tape_generic_offline(struct tape_device *device) | |||
415 | device->cdev_id); | 415 | device->cdev_id); |
416 | PRINT_WARN("(%s): Set offline failed " | 416 | PRINT_WARN("(%s): Set offline failed " |
417 | "- drive in use.\n", | 417 | "- drive in use.\n", |
418 | device->cdev->dev.bus_id); | 418 | dev_name(&device->cdev->dev)); |
419 | spin_unlock_irq(get_ccwdev_lock(device->cdev)); | 419 | spin_unlock_irq(get_ccwdev_lock(device->cdev)); |
420 | return -EBUSY; | 420 | return -EBUSY; |
421 | } | 421 | } |
@@ -538,7 +538,8 @@ tape_generic_probe(struct ccw_device *cdev) | |||
538 | ret = sysfs_create_group(&cdev->dev.kobj, &tape_attr_group); | 538 | ret = sysfs_create_group(&cdev->dev.kobj, &tape_attr_group); |
539 | if (ret) { | 539 | if (ret) { |
540 | tape_put_device(device); | 540 | tape_put_device(device); |
541 | PRINT_ERR("probe failed for tape device %s\n", cdev->dev.bus_id); | 541 | PRINT_ERR("probe failed for tape device %s\n", |
542 | dev_name(&cdev->dev)); | ||
542 | return ret; | 543 | return ret; |
543 | } | 544 | } |
544 | cdev->dev.driver_data = device; | 545 | cdev->dev.driver_data = device; |
@@ -546,7 +547,7 @@ tape_generic_probe(struct ccw_device *cdev) | |||
546 | device->cdev = cdev; | 547 | device->cdev = cdev; |
547 | ccw_device_get_id(cdev, &dev_id); | 548 | ccw_device_get_id(cdev, &dev_id); |
548 | device->cdev_id = devid_to_int(&dev_id); | 549 | device->cdev_id = devid_to_int(&dev_id); |
549 | PRINT_INFO("tape device %s found\n", cdev->dev.bus_id); | 550 | PRINT_INFO("tape device %s found\n", dev_name(&cdev->dev)); |
550 | return ret; | 551 | return ret; |
551 | } | 552 | } |
552 | 553 | ||
@@ -616,7 +617,7 @@ tape_generic_remove(struct ccw_device *cdev) | |||
616 | device->cdev_id); | 617 | device->cdev_id); |
617 | PRINT_WARN("(%s): Drive in use vanished - " | 618 | PRINT_WARN("(%s): Drive in use vanished - " |
618 | "expect trouble!\n", | 619 | "expect trouble!\n", |
619 | device->cdev->dev.bus_id); | 620 | dev_name(&device->cdev->dev)); |
620 | PRINT_WARN("State was %i\n", device->tape_state); | 621 | PRINT_WARN("State was %i\n", device->tape_state); |
621 | tape_state_set(device, TS_NOT_OPER); | 622 | tape_state_set(device, TS_NOT_OPER); |
622 | __tape_discard_requests(device); | 623 | __tape_discard_requests(device); |
@@ -840,7 +841,7 @@ tape_dump_sense(struct tape_device* device, struct tape_request *request, | |||
840 | PRINT_INFO("-------------------------------------------------\n"); | 841 | PRINT_INFO("-------------------------------------------------\n"); |
841 | PRINT_INFO("DSTAT : %02x CSTAT: %02x CPA: %04x\n", | 842 | PRINT_INFO("DSTAT : %02x CSTAT: %02x CPA: %04x\n", |
842 | irb->scsw.cmd.dstat, irb->scsw.cmd.cstat, irb->scsw.cmd.cpa); | 843 | irb->scsw.cmd.dstat, irb->scsw.cmd.cstat, irb->scsw.cmd.cpa); |
843 | PRINT_INFO("DEVICE: %s\n", device->cdev->dev.bus_id); | 844 | PRINT_INFO("DEVICE: %s\n", dev_name(&device->cdev->dev)); |
844 | if (request != NULL) | 845 | if (request != NULL) |
845 | PRINT_INFO("OP : %s\n", tape_op_verbose[request->op]); | 846 | PRINT_INFO("OP : %s\n", tape_op_verbose[request->op]); |
846 | 847 | ||
@@ -1051,7 +1052,7 @@ __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
1051 | device = (struct tape_device *) cdev->dev.driver_data; | 1052 | device = (struct tape_device *) cdev->dev.driver_data; |
1052 | if (device == NULL) { | 1053 | if (device == NULL) { |
1053 | PRINT_ERR("could not get device structure for %s " | 1054 | PRINT_ERR("could not get device structure for %s " |
1054 | "in interrupt\n", cdev->dev.bus_id); | 1055 | "in interrupt\n", dev_name(&cdev->dev)); |
1055 | return; | 1056 | return; |
1056 | } | 1057 | } |
1057 | request = (struct tape_request *) intparm; | 1058 | request = (struct tape_request *) intparm; |
@@ -1064,13 +1065,13 @@ __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
1064 | switch (PTR_ERR(irb)) { | 1065 | switch (PTR_ERR(irb)) { |
1065 | case -ETIMEDOUT: | 1066 | case -ETIMEDOUT: |
1066 | PRINT_WARN("(%s): Request timed out\n", | 1067 | PRINT_WARN("(%s): Request timed out\n", |
1067 | cdev->dev.bus_id); | 1068 | dev_name(&cdev->dev)); |
1068 | case -EIO: | 1069 | case -EIO: |
1069 | __tape_end_request(device, request, -EIO); | 1070 | __tape_end_request(device, request, -EIO); |
1070 | break; | 1071 | break; |
1071 | default: | 1072 | default: |
1072 | PRINT_ERR("(%s): Unexpected i/o error %li\n", | 1073 | PRINT_ERR("(%s): Unexpected i/o error %li\n", |
1073 | cdev->dev.bus_id, | 1074 | dev_name(&cdev->dev), |
1074 | PTR_ERR(irb)); | 1075 | PTR_ERR(irb)); |
1075 | } | 1076 | } |
1076 | return; | 1077 | return; |
diff --git a/drivers/s390/char/tape_proc.c b/drivers/s390/char/tape_proc.c index e7c888c14e71..8a376af926a7 100644 --- a/drivers/s390/char/tape_proc.c +++ b/drivers/s390/char/tape_proc.c | |||
@@ -52,7 +52,7 @@ static int tape_proc_show(struct seq_file *m, void *v) | |||
52 | return 0; | 52 | return 0; |
53 | spin_lock_irq(get_ccwdev_lock(device->cdev)); | 53 | spin_lock_irq(get_ccwdev_lock(device->cdev)); |
54 | seq_printf(m, "%d\t", (int) n); | 54 | seq_printf(m, "%d\t", (int) n); |
55 | seq_printf(m, "%-10.10s ", device->cdev->dev.bus_id); | 55 | seq_printf(m, "%-10.10s ", dev_name(&device->cdev->dev)); |
56 | seq_printf(m, "%04X/", device->cdev->id.cu_type); | 56 | seq_printf(m, "%04X/", device->cdev->id.cu_type); |
57 | seq_printf(m, "%02X\t", device->cdev->id.cu_model); | 57 | seq_printf(m, "%02X\t", device->cdev->id.cu_model); |
58 | seq_printf(m, "%04X/", device->cdev->id.dev_type); | 58 | seq_printf(m, "%04X/", device->cdev->id.dev_type); |
diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index cc8fd781ee22..5bd573d144d6 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c | |||
@@ -47,7 +47,7 @@ tape_std_assign_timeout(unsigned long data) | |||
47 | rc = tape_cancel_io(device, request); | 47 | rc = tape_cancel_io(device, request); |
48 | if(rc) | 48 | if(rc) |
49 | PRINT_ERR("(%s): Assign timeout: Cancel failed with rc = %i\n", | 49 | PRINT_ERR("(%s): Assign timeout: Cancel failed with rc = %i\n", |
50 | device->cdev->dev.bus_id, rc); | 50 | dev_name(&device->cdev->dev), rc); |
51 | 51 | ||
52 | } | 52 | } |
53 | 53 | ||
@@ -83,7 +83,7 @@ tape_std_assign(struct tape_device *device) | |||
83 | 83 | ||
84 | if (rc != 0) { | 84 | if (rc != 0) { |
85 | PRINT_WARN("%s: assign failed - device might be busy\n", | 85 | PRINT_WARN("%s: assign failed - device might be busy\n", |
86 | device->cdev->dev.bus_id); | 86 | dev_name(&device->cdev->dev)); |
87 | DBF_EVENT(3, "%08x: assign failed - device might be busy\n", | 87 | DBF_EVENT(3, "%08x: assign failed - device might be busy\n", |
88 | device->cdev_id); | 88 | device->cdev_id); |
89 | } else { | 89 | } else { |
@@ -106,7 +106,7 @@ tape_std_unassign (struct tape_device *device) | |||
106 | DBF_EVENT(3, "(%08x): Can't unassign device\n", | 106 | DBF_EVENT(3, "(%08x): Can't unassign device\n", |
107 | device->cdev_id); | 107 | device->cdev_id); |
108 | PRINT_WARN("(%s): Can't unassign device - device gone\n", | 108 | PRINT_WARN("(%s): Can't unassign device - device gone\n", |
109 | device->cdev->dev.bus_id); | 109 | dev_name(&device->cdev->dev)); |
110 | return -EIO; | 110 | return -EIO; |
111 | } | 111 | } |
112 | 112 | ||
@@ -120,7 +120,8 @@ tape_std_unassign (struct tape_device *device) | |||
120 | 120 | ||
121 | if ((rc = tape_do_io(device, request)) != 0) { | 121 | if ((rc = tape_do_io(device, request)) != 0) { |
122 | DBF_EVENT(3, "%08x: Unassign failed\n", device->cdev_id); | 122 | DBF_EVENT(3, "%08x: Unassign failed\n", device->cdev_id); |
123 | PRINT_WARN("%s: Unassign failed\n", device->cdev->dev.bus_id); | 123 | PRINT_WARN("%s: Unassign failed\n", |
124 | dev_name(&device->cdev->dev)); | ||
124 | } else { | 125 | } else { |
125 | DBF_EVENT(3, "%08x: Tape unassigned\n", device->cdev_id); | 126 | DBF_EVENT(3, "%08x: Tape unassigned\n", device->cdev_id); |
126 | } | 127 | } |
@@ -634,10 +635,10 @@ tape_std_mtcompression(struct tape_device *device, int mt_count) | |||
634 | DBF_EXCEPTION(6, "xcom parm\n"); | 635 | DBF_EXCEPTION(6, "xcom parm\n"); |
635 | if (*device->modeset_byte & 0x08) | 636 | if (*device->modeset_byte & 0x08) |
636 | PRINT_INFO("(%s) Compression is currently on\n", | 637 | PRINT_INFO("(%s) Compression is currently on\n", |
637 | device->cdev->dev.bus_id); | 638 | dev_name(&device->cdev->dev)); |
638 | else | 639 | else |
639 | PRINT_INFO("(%s) Compression is currently off\n", | 640 | PRINT_INFO("(%s) Compression is currently off\n", |
640 | device->cdev->dev.bus_id); | 641 | dev_name(&device->cdev->dev)); |
641 | PRINT_INFO("Use 1 to switch compression on, 0 to " | 642 | PRINT_INFO("Use 1 to switch compression on, 0 to " |
642 | "switch it off\n"); | 643 | "switch it off\n"); |
643 | return -EINVAL; | 644 | return -EINVAL; |
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index c31faefa2b3b..036e650e8b9c 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c | |||
@@ -751,7 +751,7 @@ static int vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) | |||
751 | priv->class_device = device_create_drvdata(vmlogrdr_class, dev, | 751 | priv->class_device = device_create_drvdata(vmlogrdr_class, dev, |
752 | MKDEV(vmlogrdr_major, | 752 | MKDEV(vmlogrdr_major, |
753 | priv->minor_num), | 753 | priv->minor_num), |
754 | priv, "%s", dev->bus_id); | 754 | priv, "%s", dev_name(dev)); |
755 | if (IS_ERR(priv->class_device)) { | 755 | if (IS_ERR(priv->class_device)) { |
756 | ret = PTR_ERR(priv->class_device); | 756 | ret = PTR_ERR(priv->class_device); |
757 | priv->class_device=NULL; | 757 | priv->class_device=NULL; |
diff --git a/drivers/s390/char/vmur.c b/drivers/s390/char/vmur.c index c1f352b84868..6fdfa5ddeca8 100644 --- a/drivers/s390/char/vmur.c +++ b/drivers/s390/char/vmur.c | |||
@@ -886,11 +886,11 @@ static int ur_set_online(struct ccw_device *cdev) | |||
886 | goto fail_free_cdev; | 886 | goto fail_free_cdev; |
887 | if (urd->cdev->id.cu_type == READER_PUNCH_DEVTYPE) { | 887 | if (urd->cdev->id.cu_type == READER_PUNCH_DEVTYPE) { |
888 | if (urd->class == DEV_CLASS_UR_I) | 888 | if (urd->class == DEV_CLASS_UR_I) |
889 | sprintf(node_id, "vmrdr-%s", cdev->dev.bus_id); | 889 | sprintf(node_id, "vmrdr-%s", dev_name(&cdev->dev)); |
890 | if (urd->class == DEV_CLASS_UR_O) | 890 | if (urd->class == DEV_CLASS_UR_O) |
891 | sprintf(node_id, "vmpun-%s", cdev->dev.bus_id); | 891 | sprintf(node_id, "vmpun-%s", dev_name(&cdev->dev)); |
892 | } else if (urd->cdev->id.cu_type == PRINTER_DEVTYPE) { | 892 | } else if (urd->cdev->id.cu_type == PRINTER_DEVTYPE) { |
893 | sprintf(node_id, "vmprt-%s", cdev->dev.bus_id); | 893 | sprintf(node_id, "vmprt-%s", dev_name(&cdev->dev)); |
894 | } else { | 894 | } else { |
895 | rc = -EOPNOTSUPP; | 895 | rc = -EOPNOTSUPP; |
896 | goto fail_free_cdev; | 896 | goto fail_free_cdev; |
diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index 9a50f245774b..e17b462ace03 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c | |||
@@ -270,7 +270,7 @@ int ccwgroup_create_from_string(struct device *root, unsigned int creator_id, | |||
270 | } | 270 | } |
271 | 271 | ||
272 | snprintf (gdev->dev.bus_id, BUS_ID_SIZE, "%s", | 272 | snprintf (gdev->dev.bus_id, BUS_ID_SIZE, "%s", |
273 | gdev->cdev[0]->dev.bus_id); | 273 | dev_name(&gdev->cdev[0]->dev)); |
274 | 274 | ||
275 | rc = device_add(&gdev->dev); | 275 | rc = device_add(&gdev->dev); |
276 | if (rc) | 276 | if (rc) |
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index 326f4cc7f92c..8759912734e0 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c | |||
@@ -153,7 +153,7 @@ cio_start_handle_notoper(struct subchannel *sch, __u8 lpm) | |||
153 | CIO_MSG_EVENT(2, "cio_start: 'not oper' status for " | 153 | CIO_MSG_EVENT(2, "cio_start: 'not oper' status for " |
154 | "subchannel 0.%x.%04x!\n", sch->schid.ssid, | 154 | "subchannel 0.%x.%04x!\n", sch->schid.ssid, |
155 | sch->schid.sch_no); | 155 | sch->schid.sch_no); |
156 | sprintf(dbf_text, "no%s", sch->dev.bus_id); | 156 | sprintf(dbf_text, "no%s", dev_name(&sch->dev)); |
157 | CIO_TRACE_EVENT(0, dbf_text); | 157 | CIO_TRACE_EVENT(0, dbf_text); |
158 | CIO_HEX_EVENT(0, &sch->schib, sizeof (struct schib)); | 158 | CIO_HEX_EVENT(0, &sch->schib, sizeof (struct schib)); |
159 | 159 | ||
@@ -171,7 +171,7 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */ | |||
171 | union orb *orb; | 171 | union orb *orb; |
172 | 172 | ||
173 | CIO_TRACE_EVENT(4, "stIO"); | 173 | CIO_TRACE_EVENT(4, "stIO"); |
174 | CIO_TRACE_EVENT(4, sch->dev.bus_id); | 174 | CIO_TRACE_EVENT(4, dev_name(&sch->dev)); |
175 | 175 | ||
176 | orb = &to_io_private(sch)->orb; | 176 | orb = &to_io_private(sch)->orb; |
177 | memset(orb, 0, sizeof(union orb)); | 177 | memset(orb, 0, sizeof(union orb)); |
@@ -232,7 +232,7 @@ cio_resume (struct subchannel *sch) | |||
232 | int ccode; | 232 | int ccode; |
233 | 233 | ||
234 | CIO_TRACE_EVENT (4, "resIO"); | 234 | CIO_TRACE_EVENT (4, "resIO"); |
235 | CIO_TRACE_EVENT (4, sch->dev.bus_id); | 235 | CIO_TRACE_EVENT(4, dev_name(&sch->dev)); |
236 | 236 | ||
237 | ccode = rsch (sch->schid); | 237 | ccode = rsch (sch->schid); |
238 | 238 | ||
@@ -269,7 +269,7 @@ cio_halt(struct subchannel *sch) | |||
269 | return -ENODEV; | 269 | return -ENODEV; |
270 | 270 | ||
271 | CIO_TRACE_EVENT (2, "haltIO"); | 271 | CIO_TRACE_EVENT (2, "haltIO"); |
272 | CIO_TRACE_EVENT (2, sch->dev.bus_id); | 272 | CIO_TRACE_EVENT(2, dev_name(&sch->dev)); |
273 | 273 | ||
274 | /* | 274 | /* |
275 | * Issue "Halt subchannel" and process condition code | 275 | * Issue "Halt subchannel" and process condition code |
@@ -304,7 +304,7 @@ cio_clear(struct subchannel *sch) | |||
304 | return -ENODEV; | 304 | return -ENODEV; |
305 | 305 | ||
306 | CIO_TRACE_EVENT (2, "clearIO"); | 306 | CIO_TRACE_EVENT (2, "clearIO"); |
307 | CIO_TRACE_EVENT (2, sch->dev.bus_id); | 307 | CIO_TRACE_EVENT(2, dev_name(&sch->dev)); |
308 | 308 | ||
309 | /* | 309 | /* |
310 | * Issue "Clear subchannel" and process condition code | 310 | * Issue "Clear subchannel" and process condition code |
@@ -340,7 +340,7 @@ cio_cancel (struct subchannel *sch) | |||
340 | return -ENODEV; | 340 | return -ENODEV; |
341 | 341 | ||
342 | CIO_TRACE_EVENT (2, "cancelIO"); | 342 | CIO_TRACE_EVENT (2, "cancelIO"); |
343 | CIO_TRACE_EVENT (2, sch->dev.bus_id); | 343 | CIO_TRACE_EVENT(2, dev_name(&sch->dev)); |
344 | 344 | ||
345 | ccode = xsch (sch->schid); | 345 | ccode = xsch (sch->schid); |
346 | 346 | ||
@@ -404,7 +404,7 @@ int cio_enable_subchannel(struct subchannel *sch, u32 intparm) | |||
404 | int ret; | 404 | int ret; |
405 | 405 | ||
406 | CIO_TRACE_EVENT (2, "ensch"); | 406 | CIO_TRACE_EVENT (2, "ensch"); |
407 | CIO_TRACE_EVENT (2, sch->dev.bus_id); | 407 | CIO_TRACE_EVENT(2, dev_name(&sch->dev)); |
408 | 408 | ||
409 | if (sch_is_pseudo_sch(sch)) | 409 | if (sch_is_pseudo_sch(sch)) |
410 | return -EINVAL; | 410 | return -EINVAL; |
@@ -454,7 +454,7 @@ int cio_disable_subchannel(struct subchannel *sch) | |||
454 | int ret; | 454 | int ret; |
455 | 455 | ||
456 | CIO_TRACE_EVENT (2, "dissch"); | 456 | CIO_TRACE_EVENT (2, "dissch"); |
457 | CIO_TRACE_EVENT (2, sch->dev.bus_id); | 457 | CIO_TRACE_EVENT(2, dev_name(&sch->dev)); |
458 | 458 | ||
459 | if (sch_is_pseudo_sch(sch)) | 459 | if (sch_is_pseudo_sch(sch)) |
460 | return 0; | 460 | return 0; |
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 8575d263b13e..95b92dfec5a8 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -1101,7 +1101,7 @@ static void io_subchannel_irq(struct subchannel *sch) | |||
1101 | cdev = sch_get_cdev(sch); | 1101 | cdev = sch_get_cdev(sch); |
1102 | 1102 | ||
1103 | CIO_TRACE_EVENT(3, "IRQ"); | 1103 | CIO_TRACE_EVENT(3, "IRQ"); |
1104 | CIO_TRACE_EVENT(3, sch->dev.bus_id); | 1104 | CIO_TRACE_EVENT(3, dev_name(&sch->dev)); |
1105 | if (cdev) | 1105 | if (cdev) |
1106 | dev_fsm_event(cdev, DEV_EVENT_INTERRUPT); | 1106 | dev_fsm_event(cdev, DEV_EVENT_INTERRUPT); |
1107 | } | 1107 | } |
@@ -1707,7 +1707,7 @@ __ccwdev_check_busid(struct device *dev, void *id) | |||
1707 | 1707 | ||
1708 | bus_id = id; | 1708 | bus_id = id; |
1709 | 1709 | ||
1710 | return (strncmp(bus_id, dev->bus_id, BUS_ID_SIZE) == 0); | 1710 | return (strncmp(bus_id, dev_name(dev), BUS_ID_SIZE) == 0); |
1711 | } | 1711 | } |
1712 | 1712 | ||
1713 | 1713 | ||
diff --git a/drivers/s390/cio/device_fsm.c b/drivers/s390/cio/device_fsm.c index 84cc9ea346db..10bc03940fb3 100644 --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c | |||
@@ -52,8 +52,10 @@ static void ccw_timeout_log(struct ccw_device *cdev) | |||
52 | printk(KERN_WARNING "cio: orb:\n"); | 52 | printk(KERN_WARNING "cio: orb:\n"); |
53 | print_hex_dump(KERN_WARNING, "cio: ", DUMP_PREFIX_NONE, 16, 1, | 53 | print_hex_dump(KERN_WARNING, "cio: ", DUMP_PREFIX_NONE, 16, 1, |
54 | orb, sizeof(*orb), 0); | 54 | orb, sizeof(*orb), 0); |
55 | printk(KERN_WARNING "cio: ccw device bus id: %s\n", cdev->dev.bus_id); | 55 | printk(KERN_WARNING "cio: ccw device bus id: %s\n", |
56 | printk(KERN_WARNING "cio: subchannel bus id: %s\n", sch->dev.bus_id); | 56 | dev_name(&cdev->dev)); |
57 | printk(KERN_WARNING "cio: subchannel bus id: %s\n", | ||
58 | dev_name(&sch->dev)); | ||
57 | printk(KERN_WARNING "cio: subchannel lpm: %02x, opm: %02x, " | 59 | printk(KERN_WARNING "cio: subchannel lpm: %02x, opm: %02x, " |
58 | "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); | 60 | "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); |
59 | 61 | ||
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c index ee1a28310fbb..eabcc42d63df 100644 --- a/drivers/s390/cio/device_ops.c +++ b/drivers/s390/cio/device_ops.c | |||
@@ -498,7 +498,7 @@ ccw_device_stlck(struct ccw_device *cdev) | |||
498 | sch = to_subchannel(cdev->dev.parent); | 498 | sch = to_subchannel(cdev->dev.parent); |
499 | 499 | ||
500 | CIO_TRACE_EVENT(2, "stl lock"); | 500 | CIO_TRACE_EVENT(2, "stl lock"); |
501 | CIO_TRACE_EVENT(2, cdev->dev.bus_id); | 501 | CIO_TRACE_EVENT(2, dev_name(&cdev->dev)); |
502 | 502 | ||
503 | buf = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL); | 503 | buf = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL); |
504 | if (!buf) | 504 | if (!buf) |
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index e10ac9ab2d44..26e95858a8f9 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c | |||
@@ -299,7 +299,7 @@ claw_probe(struct ccwgroup_device *cgdev) | |||
299 | probe_error(cgdev); | 299 | probe_error(cgdev); |
300 | put_device(&cgdev->dev); | 300 | put_device(&cgdev->dev); |
301 | printk(KERN_WARNING "add_files failed %s %s Exit Line %d \n", | 301 | printk(KERN_WARNING "add_files failed %s %s Exit Line %d \n", |
302 | cgdev->cdev[0]->dev.bus_id,__func__,__LINE__); | 302 | dev_name(&cgdev->cdev[0]->dev), __func__, __LINE__); |
303 | CLAW_DBF_TEXT_(2, setup, "probex%d", rc); | 303 | CLAW_DBF_TEXT_(2, setup, "probex%d", rc); |
304 | return rc; | 304 | return rc; |
305 | } | 305 | } |
@@ -584,7 +584,7 @@ claw_irq_handler(struct ccw_device *cdev, | |||
584 | if (!cdev->dev.driver_data) { | 584 | if (!cdev->dev.driver_data) { |
585 | printk(KERN_WARNING "claw: unsolicited interrupt for device:" | 585 | printk(KERN_WARNING "claw: unsolicited interrupt for device:" |
586 | "%s received c-%02x d-%02x\n", | 586 | "%s received c-%02x d-%02x\n", |
587 | cdev->dev.bus_id, irb->scsw.cmd.cstat, | 587 | dev_name(&cdev->dev), irb->scsw.cmd.cstat, |
588 | irb->scsw.cmd.dstat); | 588 | irb->scsw.cmd.dstat); |
589 | CLAW_DBF_TEXT(2, trace, "badirq"); | 589 | CLAW_DBF_TEXT(2, trace, "badirq"); |
590 | return; | 590 | return; |
@@ -598,7 +598,7 @@ claw_irq_handler(struct ccw_device *cdev, | |||
598 | p_ch = &privptr->channel[WRITE]; | 598 | p_ch = &privptr->channel[WRITE]; |
599 | else { | 599 | else { |
600 | printk(KERN_WARNING "claw: Can't determine channel for " | 600 | printk(KERN_WARNING "claw: Can't determine channel for " |
601 | "interrupt, device %s\n", cdev->dev.bus_id); | 601 | "interrupt, device %s\n", dev_name(&cdev->dev)); |
602 | CLAW_DBF_TEXT(2, trace, "badchan"); | 602 | CLAW_DBF_TEXT(2, trace, "badchan"); |
603 | return; | 603 | return; |
604 | } | 604 | } |
@@ -662,7 +662,7 @@ claw_irq_handler(struct ccw_device *cdev, | |||
662 | printk(KERN_WARNING "claw: unsolicited " | 662 | printk(KERN_WARNING "claw: unsolicited " |
663 | "interrupt for device:" | 663 | "interrupt for device:" |
664 | "%s received c-%02x d-%02x\n", | 664 | "%s received c-%02x d-%02x\n", |
665 | cdev->dev.bus_id, | 665 | dev_name(&cdev->dev), |
666 | irb->scsw.cmd.cstat, | 666 | irb->scsw.cmd.cstat, |
667 | irb->scsw.cmd.dstat); | 667 | irb->scsw.cmd.dstat); |
668 | return; | 668 | return; |
@@ -1136,19 +1136,20 @@ ccw_check_return_code(struct ccw_device *cdev, int return_code) | |||
1136 | break; | 1136 | break; |
1137 | case -ENODEV: | 1137 | case -ENODEV: |
1138 | printk(KERN_EMERG "%s: Missing device called " | 1138 | printk(KERN_EMERG "%s: Missing device called " |
1139 | "for IO ENODEV\n", cdev->dev.bus_id); | 1139 | "for IO ENODEV\n", dev_name(&cdev->dev)); |
1140 | break; | 1140 | break; |
1141 | case -EIO: | 1141 | case -EIO: |
1142 | printk(KERN_EMERG "%s: Status pending... EIO \n", | 1142 | printk(KERN_EMERG "%s: Status pending... EIO \n", |
1143 | cdev->dev.bus_id); | 1143 | dev_name(&cdev->dev)); |
1144 | break; | 1144 | break; |
1145 | case -EINVAL: | 1145 | case -EINVAL: |
1146 | printk(KERN_EMERG "%s: Invalid Dev State EINVAL \n", | 1146 | printk(KERN_EMERG "%s: Invalid Dev State EINVAL \n", |
1147 | cdev->dev.bus_id); | 1147 | dev_name(&cdev->dev)); |
1148 | break; | 1148 | break; |
1149 | default: | 1149 | default: |
1150 | printk(KERN_EMERG "%s: Unknown error in " | 1150 | printk(KERN_EMERG "%s: Unknown error in " |
1151 | "Do_IO %d\n",cdev->dev.bus_id, return_code); | 1151 | "Do_IO %d\n", dev_name(&cdev->dev), |
1152 | return_code); | ||
1152 | } | 1153 | } |
1153 | } | 1154 | } |
1154 | CLAW_DBF_TEXT(4, trace, "ccwret"); | 1155 | CLAW_DBF_TEXT(4, trace, "ccwret"); |
@@ -2848,11 +2849,11 @@ add_channel(struct ccw_device *cdev,int i,struct claw_privbk *privptr) | |||
2848 | struct chbk *p_ch; | 2849 | struct chbk *p_ch; |
2849 | struct ccw_dev_id dev_id; | 2850 | struct ccw_dev_id dev_id; |
2850 | 2851 | ||
2851 | CLAW_DBF_TEXT_(2, setup, "%s", cdev->dev.bus_id); | 2852 | CLAW_DBF_TEXT_(2, setup, "%s", dev_name(&cdev->dev)); |
2852 | privptr->channel[i].flag = i+1; /* Read is 1 Write is 2 */ | 2853 | privptr->channel[i].flag = i+1; /* Read is 1 Write is 2 */ |
2853 | p_ch = &privptr->channel[i]; | 2854 | p_ch = &privptr->channel[i]; |
2854 | p_ch->cdev = cdev; | 2855 | p_ch->cdev = cdev; |
2855 | snprintf(p_ch->id, CLAW_ID_SIZE, "cl-%s", cdev->dev.bus_id); | 2856 | snprintf(p_ch->id, CLAW_ID_SIZE, "cl-%s", dev_name(&cdev->dev)); |
2856 | ccw_device_get_id(cdev, &dev_id); | 2857 | ccw_device_get_id(cdev, &dev_id); |
2857 | p_ch->devno = dev_id.devno; | 2858 | p_ch->devno = dev_id.devno; |
2858 | if ((p_ch->irb = kzalloc(sizeof (struct irb),GFP_KERNEL)) == NULL) { | 2859 | if ((p_ch->irb = kzalloc(sizeof (struct irb),GFP_KERNEL)) == NULL) { |
@@ -3020,7 +3021,7 @@ claw_remove_device(struct ccwgroup_device *cgdev) | |||
3020 | priv = cgdev->dev.driver_data; | 3021 | priv = cgdev->dev.driver_data; |
3021 | BUG_ON(!priv); | 3022 | BUG_ON(!priv); |
3022 | printk(KERN_INFO "claw: %s() called %s will be removed.\n", | 3023 | printk(KERN_INFO "claw: %s() called %s will be removed.\n", |
3023 | __func__,cgdev->cdev[0]->dev.bus_id); | 3024 | __func__, dev_name(&cgdev->cdev[0]->dev)); |
3024 | if (cgdev->state == CCWGROUP_ONLINE) | 3025 | if (cgdev->state == CCWGROUP_ONLINE) |
3025 | claw_shutdown_device(cgdev); | 3026 | claw_shutdown_device(cgdev); |
3026 | claw_remove_files(&cgdev->dev); | 3027 | claw_remove_files(&cgdev->dev); |
diff --git a/drivers/s390/net/claw.h b/drivers/s390/net/claw.h index 1a89d989f348..005072c420d3 100644 --- a/drivers/s390/net/claw.h +++ b/drivers/s390/net/claw.h | |||
@@ -85,7 +85,7 @@ | |||
85 | #define CLAW_MAX_DEV 256 /* max claw devices */ | 85 | #define CLAW_MAX_DEV 256 /* max claw devices */ |
86 | #define MAX_NAME_LEN 8 /* host name, adapter name length */ | 86 | #define MAX_NAME_LEN 8 /* host name, adapter name length */ |
87 | #define CLAW_FRAME_SIZE 4096 | 87 | #define CLAW_FRAME_SIZE 4096 |
88 | #define CLAW_ID_SIZE BUS_ID_SIZE+3 | 88 | #define CLAW_ID_SIZE 20+3 |
89 | 89 | ||
90 | /* state machine codes used in claw_irq_handler */ | 90 | /* state machine codes used in claw_irq_handler */ |
91 | 91 | ||
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c index b11fec24c7d2..d2374cf4c4b9 100644 --- a/drivers/s390/net/ctcm_main.c +++ b/drivers/s390/net/ctcm_main.c | |||
@@ -277,18 +277,18 @@ static long ctcm_check_irb_error(struct ccw_device *cdev, struct irb *irb) | |||
277 | 277 | ||
278 | CTCM_DBF_TEXT_(ERROR, CTC_DBF_WARN, | 278 | CTCM_DBF_TEXT_(ERROR, CTC_DBF_WARN, |
279 | "irb error %ld on device %s\n", | 279 | "irb error %ld on device %s\n", |
280 | PTR_ERR(irb), cdev->dev.bus_id); | 280 | PTR_ERR(irb), dev_name(&cdev->dev)); |
281 | 281 | ||
282 | switch (PTR_ERR(irb)) { | 282 | switch (PTR_ERR(irb)) { |
283 | case -EIO: | 283 | case -EIO: |
284 | ctcm_pr_warn("i/o-error on device %s\n", cdev->dev.bus_id); | 284 | ctcm_pr_warn("i/o-error on device %s\n", dev_name(&cdev->dev)); |
285 | break; | 285 | break; |
286 | case -ETIMEDOUT: | 286 | case -ETIMEDOUT: |
287 | ctcm_pr_warn("timeout on device %s\n", cdev->dev.bus_id); | 287 | ctcm_pr_warn("timeout on device %s\n", dev_name(&cdev->dev)); |
288 | break; | 288 | break; |
289 | default: | 289 | default: |
290 | ctcm_pr_warn("unknown error %ld on device %s\n", | 290 | ctcm_pr_warn("unknown error %ld on device %s\n", |
291 | PTR_ERR(irb), cdev->dev.bus_id); | 291 | PTR_ERR(irb), dev_name(&cdev->dev)); |
292 | } | 292 | } |
293 | return PTR_ERR(irb); | 293 | return PTR_ERR(irb); |
294 | } | 294 | } |
@@ -1182,7 +1182,7 @@ static void ctcm_irq_handler(struct ccw_device *cdev, | |||
1182 | int dstat; | 1182 | int dstat; |
1183 | 1183 | ||
1184 | CTCM_DBF_TEXT_(TRACE, CTC_DBF_DEBUG, | 1184 | CTCM_DBF_TEXT_(TRACE, CTC_DBF_DEBUG, |
1185 | "Enter %s(%s)", CTCM_FUNTAIL, &cdev->dev.bus_id); | 1185 | "Enter %s(%s)", CTCM_FUNTAIL, dev_name(&cdev->dev)); |
1186 | 1186 | ||
1187 | if (ctcm_check_irb_error(cdev, irb)) | 1187 | if (ctcm_check_irb_error(cdev, irb)) |
1188 | return; | 1188 | return; |
@@ -1208,14 +1208,14 @@ static void ctcm_irq_handler(struct ccw_device *cdev, | |||
1208 | ch = priv->channel[WRITE]; | 1208 | ch = priv->channel[WRITE]; |
1209 | else { | 1209 | else { |
1210 | ctcm_pr_err("ctcm: Can't determine channel for interrupt, " | 1210 | ctcm_pr_err("ctcm: Can't determine channel for interrupt, " |
1211 | "device %s\n", cdev->dev.bus_id); | 1211 | "device %s\n", dev_name(&cdev->dev)); |
1212 | return; | 1212 | return; |
1213 | } | 1213 | } |
1214 | 1214 | ||
1215 | dev = ch->netdev; | 1215 | dev = ch->netdev; |
1216 | if (dev == NULL) { | 1216 | if (dev == NULL) { |
1217 | ctcm_pr_crit("ctcm: %s dev=NULL bus_id=%s, ch=0x%p\n", | 1217 | ctcm_pr_crit("ctcm: %s dev=NULL bus_id=%s, ch=0x%p\n", |
1218 | __func__, cdev->dev.bus_id, ch); | 1218 | __func__, dev_name(&cdev->dev), ch); |
1219 | return; | 1219 | return; |
1220 | } | 1220 | } |
1221 | 1221 | ||
@@ -1329,7 +1329,7 @@ static int add_channel(struct ccw_device *cdev, enum channel_types type, | |||
1329 | 1329 | ||
1330 | CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO, | 1330 | CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO, |
1331 | "%s(%s), type %d, proto %d", | 1331 | "%s(%s), type %d, proto %d", |
1332 | __func__, cdev->dev.bus_id, type, priv->protocol); | 1332 | __func__, dev_name(&cdev->dev), type, priv->protocol); |
1333 | 1333 | ||
1334 | ch = kzalloc(sizeof(struct channel), GFP_KERNEL); | 1334 | ch = kzalloc(sizeof(struct channel), GFP_KERNEL); |
1335 | if (ch == NULL) | 1335 | if (ch == NULL) |
@@ -1358,7 +1358,7 @@ static int add_channel(struct ccw_device *cdev, enum channel_types type, | |||
1358 | goto nomem_return; | 1358 | goto nomem_return; |
1359 | 1359 | ||
1360 | ch->cdev = cdev; | 1360 | ch->cdev = cdev; |
1361 | snprintf(ch->id, CTCM_ID_SIZE, "ch-%s", cdev->dev.bus_id); | 1361 | snprintf(ch->id, CTCM_ID_SIZE, "ch-%s", dev_name(&cdev->dev)); |
1362 | ch->type = type; | 1362 | ch->type = type; |
1363 | 1363 | ||
1364 | /** | 1364 | /** |
diff --git a/drivers/s390/net/ctcm_main.h b/drivers/s390/net/ctcm_main.h index 8e10ee86a5ee..d77cce3fe4d4 100644 --- a/drivers/s390/net/ctcm_main.h +++ b/drivers/s390/net/ctcm_main.h | |||
@@ -104,7 +104,7 @@ | |||
104 | #define READ 0 | 104 | #define READ 0 |
105 | #define WRITE 1 | 105 | #define WRITE 1 |
106 | 106 | ||
107 | #define CTCM_ID_SIZE BUS_ID_SIZE+3 | 107 | #define CTCM_ID_SIZE 20+3 |
108 | 108 | ||
109 | struct ctcm_profile { | 109 | struct ctcm_profile { |
110 | unsigned long maxmulti; | 110 | unsigned long maxmulti; |
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 9bcfa04d863b..0825be87e5a0 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -492,7 +492,7 @@ lcs_start_channel(struct lcs_channel *channel) | |||
492 | unsigned long flags; | 492 | unsigned long flags; |
493 | int rc; | 493 | int rc; |
494 | 494 | ||
495 | LCS_DBF_TEXT_(4,trace,"ssch%s", channel->ccwdev->dev.bus_id); | 495 | LCS_DBF_TEXT_(4, trace,"ssch%s", dev_name(&channel->ccwdev->dev)); |
496 | spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); | 496 | spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); |
497 | rc = ccw_device_start(channel->ccwdev, | 497 | rc = ccw_device_start(channel->ccwdev, |
498 | channel->ccws + channel->io_idx, 0, 0, | 498 | channel->ccws + channel->io_idx, 0, 0, |
@@ -501,7 +501,8 @@ lcs_start_channel(struct lcs_channel *channel) | |||
501 | channel->state = LCS_CH_STATE_RUNNING; | 501 | channel->state = LCS_CH_STATE_RUNNING; |
502 | spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); | 502 | spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); |
503 | if (rc) { | 503 | if (rc) { |
504 | LCS_DBF_TEXT_(4,trace,"essh%s", channel->ccwdev->dev.bus_id); | 504 | LCS_DBF_TEXT_(4,trace,"essh%s", |
505 | dev_name(&channel->ccwdev->dev)); | ||
505 | PRINT_ERR("Error in starting channel, rc=%d!\n", rc); | 506 | PRINT_ERR("Error in starting channel, rc=%d!\n", rc); |
506 | } | 507 | } |
507 | return rc; | 508 | return rc; |
@@ -514,12 +515,13 @@ lcs_clear_channel(struct lcs_channel *channel) | |||
514 | int rc; | 515 | int rc; |
515 | 516 | ||
516 | LCS_DBF_TEXT(4,trace,"clearch"); | 517 | LCS_DBF_TEXT(4,trace,"clearch"); |
517 | LCS_DBF_TEXT_(4,trace,"%s", channel->ccwdev->dev.bus_id); | 518 | LCS_DBF_TEXT_(4, trace, "%s", dev_name(&channel->ccwdev->dev)); |
518 | spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); | 519 | spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); |
519 | rc = ccw_device_clear(channel->ccwdev, (addr_t) channel); | 520 | rc = ccw_device_clear(channel->ccwdev, (addr_t) channel); |
520 | spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); | 521 | spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); |
521 | if (rc) { | 522 | if (rc) { |
522 | LCS_DBF_TEXT_(4,trace,"ecsc%s", channel->ccwdev->dev.bus_id); | 523 | LCS_DBF_TEXT_(4, trace, "ecsc%s", |
524 | dev_name(&channel->ccwdev->dev)); | ||
523 | return rc; | 525 | return rc; |
524 | } | 526 | } |
525 | wait_event(channel->wait_q, (channel->state == LCS_CH_STATE_CLEARED)); | 527 | wait_event(channel->wait_q, (channel->state == LCS_CH_STATE_CLEARED)); |
@@ -540,13 +542,14 @@ lcs_stop_channel(struct lcs_channel *channel) | |||
540 | if (channel->state == LCS_CH_STATE_STOPPED) | 542 | if (channel->state == LCS_CH_STATE_STOPPED) |
541 | return 0; | 543 | return 0; |
542 | LCS_DBF_TEXT(4,trace,"haltsch"); | 544 | LCS_DBF_TEXT(4,trace,"haltsch"); |
543 | LCS_DBF_TEXT_(4,trace,"%s", channel->ccwdev->dev.bus_id); | 545 | LCS_DBF_TEXT_(4, trace, "%s", dev_name(&channel->ccwdev->dev)); |
544 | channel->state = LCS_CH_STATE_INIT; | 546 | channel->state = LCS_CH_STATE_INIT; |
545 | spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); | 547 | spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); |
546 | rc = ccw_device_halt(channel->ccwdev, (addr_t) channel); | 548 | rc = ccw_device_halt(channel->ccwdev, (addr_t) channel); |
547 | spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); | 549 | spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); |
548 | if (rc) { | 550 | if (rc) { |
549 | LCS_DBF_TEXT_(4,trace,"ehsc%s", channel->ccwdev->dev.bus_id); | 551 | LCS_DBF_TEXT_(4, trace, "ehsc%s", |
552 | dev_name(&channel->ccwdev->dev)); | ||
550 | return rc; | 553 | return rc; |
551 | } | 554 | } |
552 | /* Asynchronous halt initialted. Wait for its completion. */ | 555 | /* Asynchronous halt initialted. Wait for its completion. */ |
@@ -632,10 +635,11 @@ __lcs_resume_channel(struct lcs_channel *channel) | |||
632 | return 0; | 635 | return 0; |
633 | if (channel->ccws[channel->io_idx].flags & CCW_FLAG_SUSPEND) | 636 | if (channel->ccws[channel->io_idx].flags & CCW_FLAG_SUSPEND) |
634 | return 0; | 637 | return 0; |
635 | LCS_DBF_TEXT_(5, trace, "rsch%s", channel->ccwdev->dev.bus_id); | 638 | LCS_DBF_TEXT_(5, trace, "rsch%s", dev_name(&channel->ccwdev->dev)); |
636 | rc = ccw_device_resume(channel->ccwdev); | 639 | rc = ccw_device_resume(channel->ccwdev); |
637 | if (rc) { | 640 | if (rc) { |
638 | LCS_DBF_TEXT_(4, trace, "ersc%s", channel->ccwdev->dev.bus_id); | 641 | LCS_DBF_TEXT_(4, trace, "ersc%s", |
642 | dev_name(&channel->ccwdev->dev)); | ||
639 | PRINT_ERR("Error in lcs_resume_channel: rc=%d\n",rc); | 643 | PRINT_ERR("Error in lcs_resume_channel: rc=%d\n",rc); |
640 | } else | 644 | } else |
641 | channel->state = LCS_CH_STATE_RUNNING; | 645 | channel->state = LCS_CH_STATE_RUNNING; |
@@ -1302,18 +1306,18 @@ lcs_check_irb_error(struct ccw_device *cdev, struct irb *irb) | |||
1302 | 1306 | ||
1303 | switch (PTR_ERR(irb)) { | 1307 | switch (PTR_ERR(irb)) { |
1304 | case -EIO: | 1308 | case -EIO: |
1305 | PRINT_WARN("i/o-error on device %s\n", cdev->dev.bus_id); | 1309 | PRINT_WARN("i/o-error on device %s\n", dev_name(&cdev->dev)); |
1306 | LCS_DBF_TEXT(2, trace, "ckirberr"); | 1310 | LCS_DBF_TEXT(2, trace, "ckirberr"); |
1307 | LCS_DBF_TEXT_(2, trace, " rc%d", -EIO); | 1311 | LCS_DBF_TEXT_(2, trace, " rc%d", -EIO); |
1308 | break; | 1312 | break; |
1309 | case -ETIMEDOUT: | 1313 | case -ETIMEDOUT: |
1310 | PRINT_WARN("timeout on device %s\n", cdev->dev.bus_id); | 1314 | PRINT_WARN("timeout on device %s\n", dev_name(&cdev->dev)); |
1311 | LCS_DBF_TEXT(2, trace, "ckirberr"); | 1315 | LCS_DBF_TEXT(2, trace, "ckirberr"); |
1312 | LCS_DBF_TEXT_(2, trace, " rc%d", -ETIMEDOUT); | 1316 | LCS_DBF_TEXT_(2, trace, " rc%d", -ETIMEDOUT); |
1313 | break; | 1317 | break; |
1314 | default: | 1318 | default: |
1315 | PRINT_WARN("unknown error %ld on device %s\n", PTR_ERR(irb), | 1319 | PRINT_WARN("unknown error %ld on device %s\n", PTR_ERR(irb), |
1316 | cdev->dev.bus_id); | 1320 | dev_name(&cdev->dev)); |
1317 | LCS_DBF_TEXT(2, trace, "ckirberr"); | 1321 | LCS_DBF_TEXT(2, trace, "ckirberr"); |
1318 | LCS_DBF_TEXT(2, trace, " rc???"); | 1322 | LCS_DBF_TEXT(2, trace, " rc???"); |
1319 | } | 1323 | } |
@@ -1390,7 +1394,7 @@ lcs_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
1390 | 1394 | ||
1391 | cstat = irb->scsw.cmd.cstat; | 1395 | cstat = irb->scsw.cmd.cstat; |
1392 | dstat = irb->scsw.cmd.dstat; | 1396 | dstat = irb->scsw.cmd.dstat; |
1393 | LCS_DBF_TEXT_(5, trace, "Rint%s",cdev->dev.bus_id); | 1397 | LCS_DBF_TEXT_(5, trace, "Rint%s", dev_name(&cdev->dev)); |
1394 | LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.cstat, | 1398 | LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.cstat, |
1395 | irb->scsw.cmd.dstat); | 1399 | irb->scsw.cmd.dstat); |
1396 | LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.fctl, | 1400 | LCS_DBF_TEXT_(5, trace, "%4x%4x", irb->scsw.cmd.fctl, |
@@ -1400,7 +1404,7 @@ lcs_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
1400 | rc = lcs_get_problem(cdev, irb); | 1404 | rc = lcs_get_problem(cdev, irb); |
1401 | if (rc || (dstat & DEV_STAT_UNIT_EXCEP)) { | 1405 | if (rc || (dstat & DEV_STAT_UNIT_EXCEP)) { |
1402 | PRINT_WARN("check on device %s, dstat=0x%X, cstat=0x%X \n", | 1406 | PRINT_WARN("check on device %s, dstat=0x%X, cstat=0x%X \n", |
1403 | cdev->dev.bus_id, dstat, cstat); | 1407 | dev_name(&cdev->dev), dstat, cstat); |
1404 | if (rc) { | 1408 | if (rc) { |
1405 | channel->state = LCS_CH_STATE_ERROR; | 1409 | channel->state = LCS_CH_STATE_ERROR; |
1406 | } | 1410 | } |
@@ -1463,7 +1467,7 @@ lcs_tasklet(unsigned long data) | |||
1463 | int rc; | 1467 | int rc; |
1464 | 1468 | ||
1465 | channel = (struct lcs_channel *) data; | 1469 | channel = (struct lcs_channel *) data; |
1466 | LCS_DBF_TEXT_(5, trace, "tlet%s",channel->ccwdev->dev.bus_id); | 1470 | LCS_DBF_TEXT_(5, trace, "tlet%s", dev_name(&channel->ccwdev->dev)); |
1467 | 1471 | ||
1468 | /* Check for processed buffers. */ | 1472 | /* Check for processed buffers. */ |
1469 | iob = channel->iob; | 1473 | iob = channel->iob; |
@@ -2244,7 +2248,7 @@ lcs_recovery(void *ptr) | |||
2244 | return 0; | 2248 | return 0; |
2245 | LCS_DBF_TEXT(4, trace, "recover2"); | 2249 | LCS_DBF_TEXT(4, trace, "recover2"); |
2246 | gdev = card->gdev; | 2250 | gdev = card->gdev; |
2247 | PRINT_WARN("Recovery of device %s started...\n", gdev->dev.bus_id); | 2251 | PRINT_WARN("Recovery of device %s started...\n", dev_name(&gdev->dev)); |
2248 | rc = __lcs_shutdown_device(gdev, 1); | 2252 | rc = __lcs_shutdown_device(gdev, 1); |
2249 | rc = lcs_new_device(gdev); | 2253 | rc = lcs_new_device(gdev); |
2250 | if (!rc) | 2254 | if (!rc) |
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index bf8a75c92f28..af6d60458513 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h | |||
@@ -90,11 +90,11 @@ struct qeth_dbf_info { | |||
90 | #define CARD_RDEV(card) card->read.ccwdev | 90 | #define CARD_RDEV(card) card->read.ccwdev |
91 | #define CARD_WDEV(card) card->write.ccwdev | 91 | #define CARD_WDEV(card) card->write.ccwdev |
92 | #define CARD_DDEV(card) card->data.ccwdev | 92 | #define CARD_DDEV(card) card->data.ccwdev |
93 | #define CARD_BUS_ID(card) card->gdev->dev.bus_id | 93 | #define CARD_BUS_ID(card) dev_name(&card->gdev->dev) |
94 | #define CARD_RDEV_ID(card) card->read.ccwdev->dev.bus_id | 94 | #define CARD_RDEV_ID(card) dev_name(&card->read.ccwdev->dev) |
95 | #define CARD_WDEV_ID(card) card->write.ccwdev->dev.bus_id | 95 | #define CARD_WDEV_ID(card) dev_name(&card->write.ccwdev->dev) |
96 | #define CARD_DDEV_ID(card) card->data.ccwdev->dev.bus_id | 96 | #define CARD_DDEV_ID(card) dev_name(&card->data.ccwdev->dev) |
97 | #define CHANNEL_ID(channel) channel->ccwdev->dev.bus_id | 97 | #define CHANNEL_ID(channel) dev_name(&channel->ccwdev->dev) |
98 | 98 | ||
99 | /** | 99 | /** |
100 | * card stuff | 100 | * card stuff |
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index c7ab1b864516..141b2bb7b3cf 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -745,7 +745,7 @@ static int qeth_get_problem(struct ccw_device *cdev, struct irb *irb) | |||
745 | SCHN_STAT_PROT_CHECK | SCHN_STAT_PROG_CHECK)) { | 745 | SCHN_STAT_PROT_CHECK | SCHN_STAT_PROG_CHECK)) { |
746 | QETH_DBF_TEXT(TRACE, 2, "CGENCHK"); | 746 | QETH_DBF_TEXT(TRACE, 2, "CGENCHK"); |
747 | PRINT_WARN("check on device %s, dstat=x%x, cstat=x%x ", | 747 | PRINT_WARN("check on device %s, dstat=x%x, cstat=x%x ", |
748 | cdev->dev.bus_id, dstat, cstat); | 748 | dev_name(&cdev->dev), dstat, cstat); |
749 | print_hex_dump(KERN_WARNING, "qeth: irb ", DUMP_PREFIX_OFFSET, | 749 | print_hex_dump(KERN_WARNING, "qeth: irb ", DUMP_PREFIX_OFFSET, |
750 | 16, 1, irb, 64, 1); | 750 | 16, 1, irb, 64, 1); |
751 | return 1; | 751 | return 1; |
@@ -784,12 +784,12 @@ static long __qeth_check_irb_error(struct ccw_device *cdev, | |||
784 | 784 | ||
785 | switch (PTR_ERR(irb)) { | 785 | switch (PTR_ERR(irb)) { |
786 | case -EIO: | 786 | case -EIO: |
787 | PRINT_WARN("i/o-error on device %s\n", cdev->dev.bus_id); | 787 | PRINT_WARN("i/o-error on device %s\n", dev_name(&cdev->dev)); |
788 | QETH_DBF_TEXT(TRACE, 2, "ckirberr"); | 788 | QETH_DBF_TEXT(TRACE, 2, "ckirberr"); |
789 | QETH_DBF_TEXT_(TRACE, 2, " rc%d", -EIO); | 789 | QETH_DBF_TEXT_(TRACE, 2, " rc%d", -EIO); |
790 | break; | 790 | break; |
791 | case -ETIMEDOUT: | 791 | case -ETIMEDOUT: |
792 | PRINT_WARN("timeout on device %s\n", cdev->dev.bus_id); | 792 | PRINT_WARN("timeout on device %s\n", dev_name(&cdev->dev)); |
793 | QETH_DBF_TEXT(TRACE, 2, "ckirberr"); | 793 | QETH_DBF_TEXT(TRACE, 2, "ckirberr"); |
794 | QETH_DBF_TEXT_(TRACE, 2, " rc%d", -ETIMEDOUT); | 794 | QETH_DBF_TEXT_(TRACE, 2, " rc%d", -ETIMEDOUT); |
795 | if (intparm == QETH_RCD_PARM) { | 795 | if (intparm == QETH_RCD_PARM) { |
@@ -803,7 +803,7 @@ static long __qeth_check_irb_error(struct ccw_device *cdev, | |||
803 | break; | 803 | break; |
804 | default: | 804 | default: |
805 | PRINT_WARN("unknown error %ld on device %s\n", PTR_ERR(irb), | 805 | PRINT_WARN("unknown error %ld on device %s\n", PTR_ERR(irb), |
806 | cdev->dev.bus_id); | 806 | dev_name(&cdev->dev)); |
807 | QETH_DBF_TEXT(TRACE, 2, "ckirberr"); | 807 | QETH_DBF_TEXT(TRACE, 2, "ckirberr"); |
808 | QETH_DBF_TEXT(TRACE, 2, " rc???"); | 808 | QETH_DBF_TEXT(TRACE, 2, " rc???"); |
809 | } | 809 | } |
@@ -4081,7 +4081,7 @@ static int qeth_core_probe_device(struct ccwgroup_device *gdev) | |||
4081 | if (!get_device(dev)) | 4081 | if (!get_device(dev)) |
4082 | return -ENODEV; | 4082 | return -ENODEV; |
4083 | 4083 | ||
4084 | QETH_DBF_TEXT_(SETUP, 2, "%s", gdev->dev.bus_id); | 4084 | QETH_DBF_TEXT_(SETUP, 2, "%s", dev_name(&gdev->dev)); |
4085 | 4085 | ||
4086 | card = qeth_alloc_card(); | 4086 | card = qeth_alloc_card(); |
4087 | if (!card) { | 4087 | if (!card) { |
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 73eb41580f25..c69345f1f73c 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -596,7 +596,7 @@ struct zfcp_data { | |||
596 | struct semaphore config_sema; /* serialises configuration | 596 | struct semaphore config_sema; /* serialises configuration |
597 | changes */ | 597 | changes */ |
598 | atomic_t loglevel; /* current loglevel */ | 598 | atomic_t loglevel; /* current loglevel */ |
599 | char init_busid[BUS_ID_SIZE]; | 599 | char init_busid[20]; |
600 | u64 init_wwpn; | 600 | u64 init_wwpn; |
601 | u64 init_fcp_lun; | 601 | u64 init_fcp_lun; |
602 | struct kmem_cache *fsf_req_qtcb_cache; | 602 | struct kmem_cache *fsf_req_qtcb_cache; |