mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
rapidio: struct device - replace bus_id with dev_name(), dev_set_name()
Cc: Matt Porter <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
aab0d375e0
commit
b53c7583e2
2 changed files with 6 additions and 6 deletions
|
|
@ -365,15 +365,15 @@ static struct rio_dev *rio_setup_device(struct rio_net *net,
|
|||
rdid++)
|
||||
rswitch->route_table[rdid] = RIO_INVALID_ROUTE;
|
||||
rdev->rswitch = rswitch;
|
||||
sprintf(rio_name(rdev), "%02x:s:%04x", rdev->net->id,
|
||||
rdev->rswitch->switchid);
|
||||
dev_set_name(&rdev->dev, "%02x:s:%04x", rdev->net->id,
|
||||
rdev->rswitch->switchid);
|
||||
rio_route_set_ops(rdev);
|
||||
|
||||
list_add_tail(&rswitch->node, &rio_switches);
|
||||
|
||||
} else
|
||||
sprintf(rio_name(rdev), "%02x:e:%04x", rdev->net->id,
|
||||
rdev->destid);
|
||||
dev_set_name(&rdev->dev, "%02x:e:%04x", rdev->net->id,
|
||||
rdev->destid);
|
||||
|
||||
rdev->dev.bus = &rio_bus_type;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue