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/claw.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/net/claw.c')
-rw-r--r-- | drivers/s390/net/claw.c | 23 |
1 files changed, 12 insertions, 11 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); |