aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/i2o/device.c')
-rw-r--r--drivers/message/i2o/device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/message/i2o/device.c b/drivers/message/i2o/device.c
index 54c2e9ae23e5..a7dd03e8d332 100644
--- a/drivers/message/i2o/device.c
+++ b/drivers/message/i2o/device.c
@@ -134,7 +134,7 @@ static void i2o_device_release(struct device *dev)
134{ 134{
135 struct i2o_device *i2o_dev = to_i2o_device(dev); 135 struct i2o_device *i2o_dev = to_i2o_device(dev);
136 136
137 pr_debug("i2o: device %s released\n", dev->bus_id); 137 pr_debug("i2o: device %s released\n", dev_name(dev));
138 138
139 kfree(i2o_dev); 139 kfree(i2o_dev);
140} 140}
@@ -229,8 +229,8 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry)
229 229
230 i2o_dev->lct_data = *entry; 230 i2o_dev->lct_data = *entry;
231 231
232 snprintf(i2o_dev->device.bus_id, BUS_ID_SIZE, "%d:%03x", c->unit, 232 dev_set_name(&i2o_dev->device, "%d:%03x", c->unit,
233 i2o_dev->lct_data.tid); 233 i2o_dev->lct_data.tid);
234 234
235 i2o_dev->iop = c; 235 i2o_dev->iop = c;
236 i2o_dev->device.parent = &c->device; 236 i2o_dev->device.parent = &c->device;
@@ -281,7 +281,7 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry)
281 281
282 i2o_driver_notify_device_add_all(i2o_dev); 282 i2o_driver_notify_device_add_all(i2o_dev);
283 283
284 pr_debug("i2o: device %s added\n", i2o_dev->device.bus_id); 284 pr_debug("i2o: device %s added\n", dev_name(&i2o_dev->device));
285 285
286 return 0; 286 return 0;
287 287