Skip to content

Commit

Permalink
rapidio: struct device - replace bus_id with dev_name(), dev_set_name()
Browse files Browse the repository at this point in the history
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Kay Sievers authored and Paul Mackerras committed Dec 16, 2008
1 parent aab0d37 commit b53c758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions drivers/rapidio/rio-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions include/linux/rio_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ void rio_dev_put(struct rio_dev *);
* Get the unique RIO device identifier. Returns the device
* identifier string.
*/
static inline char *rio_name(struct rio_dev *rdev)
static inline const char *rio_name(struct rio_dev *rdev)
{
return rdev->dev.bus_id;
return dev_name(&rdev->dev);
}

/**
Expand Down

0 comments on commit b53c758

Please sign in to comment.