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/net | |
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/net')
-rw-r--r-- | drivers/s390/net/claw.c | 23 | ||||
-rw-r--r-- | drivers/s390/net/claw.h | 2 | ||||
-rw-r--r-- | drivers/s390/net/ctcm_main.c | 18 | ||||
-rw-r--r-- | drivers/s390/net/ctcm_main.h | 2 | ||||
-rw-r--r-- | drivers/s390/net/lcs.c | 34 | ||||
-rw-r--r-- | drivers/s390/net/qeth_core.h | 10 | ||||
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 10 |
7 files changed, 52 insertions, 47 deletions
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) { |