diff options
Diffstat (limited to 'drivers/message/i2o/device.c')
-rw-r--r-- | drivers/message/i2o/device.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/message/i2o/device.c b/drivers/message/i2o/device.c index 54c2e9ae23e5..0ee4264f5db7 100644 --- a/drivers/message/i2o/device.c +++ b/drivers/message/i2o/device.c | |||
@@ -52,7 +52,6 @@ static inline int i2o_device_issue_claim(struct i2o_device *dev, u32 cmd, | |||
52 | /** | 52 | /** |
53 | * i2o_device_claim - claim a device for use by an OSM | 53 | * i2o_device_claim - claim a device for use by an OSM |
54 | * @dev: I2O device to claim | 54 | * @dev: I2O device to claim |
55 | * @drv: I2O driver which wants to claim the device | ||
56 | * | 55 | * |
57 | * Do the leg work to assign a device to a given OSM. If the claim succeeds, | 56 | * Do the leg work to assign a device to a given OSM. If the claim succeeds, |
58 | * the owner is the primary. If the attempt fails a negative errno code | 57 | * the owner is the primary. If the attempt fails a negative errno code |
@@ -80,7 +79,6 @@ int i2o_device_claim(struct i2o_device *dev) | |||
80 | /** | 79 | /** |
81 | * i2o_device_claim_release - release a device that the OSM is using | 80 | * i2o_device_claim_release - release a device that the OSM is using |
82 | * @dev: device to release | 81 | * @dev: device to release |
83 | * @drv: driver which claimed the device | ||
84 | * | 82 | * |
85 | * Drop a claim by an OSM on a given I2O device. | 83 | * Drop a claim by an OSM on a given I2O device. |
86 | * | 84 | * |
@@ -134,7 +132,7 @@ static void i2o_device_release(struct device *dev) | |||
134 | { | 132 | { |
135 | struct i2o_device *i2o_dev = to_i2o_device(dev); | 133 | struct i2o_device *i2o_dev = to_i2o_device(dev); |
136 | 134 | ||
137 | pr_debug("i2o: device %s released\n", dev->bus_id); | 135 | pr_debug("i2o: device %s released\n", dev_name(dev)); |
138 | 136 | ||
139 | kfree(i2o_dev); | 137 | kfree(i2o_dev); |
140 | } | 138 | } |
@@ -229,8 +227,8 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry) | |||
229 | 227 | ||
230 | i2o_dev->lct_data = *entry; | 228 | i2o_dev->lct_data = *entry; |
231 | 229 | ||
232 | snprintf(i2o_dev->device.bus_id, BUS_ID_SIZE, "%d:%03x", c->unit, | 230 | dev_set_name(&i2o_dev->device, "%d:%03x", c->unit, |
233 | i2o_dev->lct_data.tid); | 231 | i2o_dev->lct_data.tid); |
234 | 232 | ||
235 | i2o_dev->iop = c; | 233 | i2o_dev->iop = c; |
236 | i2o_dev->device.parent = &c->device; | 234 | i2o_dev->device.parent = &c->device; |
@@ -281,7 +279,7 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry) | |||
281 | 279 | ||
282 | i2o_driver_notify_device_add_all(i2o_dev); | 280 | i2o_driver_notify_device_add_all(i2o_dev); |
283 | 281 | ||
284 | 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)); |
285 | 283 | ||
286 | return 0; | 284 | return 0; |
287 | 285 | ||