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 /drivers/s390/block/dasd.c | |
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>
Diffstat (limited to 'drivers/s390/block/dasd.c')
-rw-r--r-- | drivers/s390/block/dasd.c | 32 |
1 files changed, 16 insertions, 16 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. */ |