diff options
Diffstat (limited to 'drivers/s390/net/ctcm_main.c')
-rw-r--r-- | drivers/s390/net/ctcm_main.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c index b11fec24c7d2..a4e29836a2aa 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 | /** |
@@ -1518,8 +1518,8 @@ static int ctcm_new_device(struct ccwgroup_device *cgdev) | |||
1518 | 1518 | ||
1519 | type = get_channel_type(&cdev0->id); | 1519 | type = get_channel_type(&cdev0->id); |
1520 | 1520 | ||
1521 | snprintf(read_id, CTCM_ID_SIZE, "ch-%s", cdev0->dev.bus_id); | 1521 | snprintf(read_id, CTCM_ID_SIZE, "ch-%s", dev_name(&cdev0->dev)); |
1522 | snprintf(write_id, CTCM_ID_SIZE, "ch-%s", cdev1->dev.bus_id); | 1522 | snprintf(write_id, CTCM_ID_SIZE, "ch-%s", dev_name(&cdev1->dev)); |
1523 | 1523 | ||
1524 | ret = add_channel(cdev0, type, priv); | 1524 | ret = add_channel(cdev0, type, priv); |
1525 | if (ret) | 1525 | if (ret) |