diff options
Diffstat (limited to 'drivers/message/i2o/device.c')
-rw-r--r-- | drivers/message/i2o/device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/message/i2o/device.c b/drivers/message/i2o/device.c index c455da4ff411..0ee4264f5db7 100644 --- a/drivers/message/i2o/device.c +++ b/drivers/message/i2o/device.c | |||
@@ -132,7 +132,7 @@ static void i2o_device_release(struct device *dev) | |||
132 | { | 132 | { |
133 | struct i2o_device *i2o_dev = to_i2o_device(dev); | 133 | struct i2o_device *i2o_dev = to_i2o_device(dev); |
134 | 134 | ||
135 | pr_debug("i2o: device %s released\n", dev->bus_id); | 135 | pr_debug("i2o: device %s released\n", dev_name(dev)); |
136 | 136 | ||
137 | kfree(i2o_dev); | 137 | kfree(i2o_dev); |
138 | } | 138 | } |
@@ -227,8 +227,8 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry) | |||
227 | 227 | ||
228 | i2o_dev->lct_data = *entry; | 228 | i2o_dev->lct_data = *entry; |
229 | 229 | ||
230 | snprintf(i2o_dev->device.bus_id, BUS_ID_SIZE, "%d:%03x", c->unit, | 230 | dev_set_name(&i2o_dev->device, "%d:%03x", c->unit, |
231 | i2o_dev->lct_data.tid); | 231 | i2o_dev->lct_data.tid); |
232 | 232 | ||
233 | i2o_dev->iop = c; | 233 | i2o_dev->iop = c; |
234 | i2o_dev->device.parent = &c->device; | 234 | i2o_dev->device.parent = &c->device; |
@@ -279,7 +279,7 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry) | |||
279 | 279 | ||
280 | i2o_driver_notify_device_add_all(i2o_dev); | 280 | i2o_driver_notify_device_add_all(i2o_dev); |
281 | 281 | ||
282 | pr_debug("i2o: device %s added\n", i2o_dev->device.bus_id); | 282 | pr_debug("i2o: device %s added\n", dev_name(&i2o_dev->device)); |
283 | 283 | ||
284 | return 0; | 284 | return 0; |
285 | 285 | ||