diff options
Diffstat (limited to 'drivers/s390/net/claw.c')
-rw-r--r-- | drivers/s390/net/claw.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index 26e95858a8f9..8f83fc994f50 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c | |||
@@ -2880,7 +2880,8 @@ claw_new_device(struct ccwgroup_device *cgdev) | |||
2880 | int ret; | 2880 | int ret; |
2881 | struct ccw_dev_id dev_id; | 2881 | struct ccw_dev_id dev_id; |
2882 | 2882 | ||
2883 | printk(KERN_INFO "claw: add for %s\n",cgdev->cdev[READ]->dev.bus_id); | 2883 | printk(KERN_INFO "claw: add for %s\n", |
2884 | dev_name(&cgdev->cdev[READ]->dev)); | ||
2884 | CLAW_DBF_TEXT(2, setup, "new_dev"); | 2885 | CLAW_DBF_TEXT(2, setup, "new_dev"); |
2885 | privptr = cgdev->dev.driver_data; | 2886 | privptr = cgdev->dev.driver_data; |
2886 | cgdev->cdev[READ]->dev.driver_data = privptr; | 2887 | cgdev->cdev[READ]->dev.driver_data = privptr; |
@@ -2904,14 +2905,16 @@ claw_new_device(struct ccwgroup_device *cgdev) | |||
2904 | if (ret != 0) { | 2905 | if (ret != 0) { |
2905 | printk(KERN_WARNING | 2906 | printk(KERN_WARNING |
2906 | "claw: ccw_device_set_online %s READ failed " | 2907 | "claw: ccw_device_set_online %s READ failed " |
2907 | "with ret = %d\n",cgdev->cdev[READ]->dev.bus_id,ret); | 2908 | "with ret = %d\n", dev_name(&cgdev->cdev[READ]->dev), |
2909 | ret); | ||
2908 | goto out; | 2910 | goto out; |
2909 | } | 2911 | } |
2910 | ret = ccw_device_set_online(cgdev->cdev[WRITE]); | 2912 | ret = ccw_device_set_online(cgdev->cdev[WRITE]); |
2911 | if (ret != 0) { | 2913 | if (ret != 0) { |
2912 | printk(KERN_WARNING | 2914 | printk(KERN_WARNING |
2913 | "claw: ccw_device_set_online %s WRITE failed " | 2915 | "claw: ccw_device_set_online %s WRITE failed " |
2914 | "with ret = %d\n",cgdev->cdev[WRITE]->dev.bus_id, ret); | 2916 | "with ret = %d\n", dev_name(&cgdev->cdev[WRITE]->dev) |
2917 | ret); | ||
2915 | goto out; | 2918 | goto out; |
2916 | } | 2919 | } |
2917 | dev = alloc_netdev(0,"claw%d",claw_init_netdevice); | 2920 | dev = alloc_netdev(0,"claw%d",claw_init_netdevice); |
@@ -2987,7 +2990,7 @@ claw_shutdown_device(struct ccwgroup_device *cgdev) | |||
2987 | struct net_device *ndev; | 2990 | struct net_device *ndev; |
2988 | int ret; | 2991 | int ret; |
2989 | 2992 | ||
2990 | CLAW_DBF_TEXT_(2, setup, "%s", cgdev->dev.bus_id); | 2993 | CLAW_DBF_TEXT_(2, setup, "%s", dev_name(&cgdev->dev)); |
2991 | priv = cgdev->dev.driver_data; | 2994 | priv = cgdev->dev.driver_data; |
2992 | if (!priv) | 2995 | if (!priv) |
2993 | return -ENODEV; | 2996 | return -ENODEV; |
@@ -3017,7 +3020,7 @@ claw_remove_device(struct ccwgroup_device *cgdev) | |||
3017 | struct claw_privbk *priv; | 3020 | struct claw_privbk *priv; |
3018 | 3021 | ||
3019 | BUG_ON(!cgdev); | 3022 | BUG_ON(!cgdev); |
3020 | CLAW_DBF_TEXT_(2, setup, "%s", cgdev->dev.bus_id); | 3023 | CLAW_DBF_TEXT_(2, setup, "%s", dev_name(&cgdev->dev)); |
3021 | priv = cgdev->dev.driver_data; | 3024 | priv = cgdev->dev.driver_data; |
3022 | BUG_ON(!priv); | 3025 | BUG_ON(!priv); |
3023 | printk(KERN_INFO "claw: %s() called %s will be removed.\n", | 3026 | printk(KERN_INFO "claw: %s() called %s will be removed.\n", |