diff options
-rw-r--r-- | drivers/rapidio/rio-scan.c | 5 | ||||
-rw-r--r-- | include/linux/rio.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index ab837fdb2383..d3a6539a77cc 100644 --- a/drivers/rapidio/rio-scan.c +++ b/drivers/rapidio/rio-scan.c | |||
@@ -433,7 +433,6 @@ static struct rio_dev *rio_setup_device(struct rio_net *net, | |||
433 | /* If a PE has both switch and other functions, show it as a switch */ | 433 | /* If a PE has both switch and other functions, show it as a switch */ |
434 | if (rio_is_switch(rdev)) { | 434 | if (rio_is_switch(rdev)) { |
435 | rswitch = rdev->rswitch; | 435 | rswitch = rdev->rswitch; |
436 | rswitch->switchid = rdev->comp_tag & RIO_CTAG_UDEVID; | ||
437 | rswitch->port_ok = 0; | 436 | rswitch->port_ok = 0; |
438 | spin_lock_init(&rswitch->lock); | 437 | spin_lock_init(&rswitch->lock); |
439 | rswitch->route_table = kzalloc(sizeof(u8)* | 438 | rswitch->route_table = kzalloc(sizeof(u8)* |
@@ -446,7 +445,7 @@ static struct rio_dev *rio_setup_device(struct rio_net *net, | |||
446 | rdid++) | 445 | rdid++) |
447 | rswitch->route_table[rdid] = RIO_INVALID_ROUTE; | 446 | rswitch->route_table[rdid] = RIO_INVALID_ROUTE; |
448 | dev_set_name(&rdev->dev, "%02x:s:%04x", rdev->net->id, | 447 | dev_set_name(&rdev->dev, "%02x:s:%04x", rdev->net->id, |
449 | rswitch->switchid); | 448 | rdev->comp_tag & RIO_CTAG_UDEVID); |
450 | 449 | ||
451 | if (do_enum) | 450 | if (do_enum) |
452 | rio_route_clr_table(rdev, RIO_GLOBAL_TABLE, 0); | 451 | rio_route_clr_table(rdev, RIO_GLOBAL_TABLE, 0); |
@@ -459,7 +458,7 @@ static struct rio_dev *rio_setup_device(struct rio_net *net, | |||
459 | rio_enable_rx_tx_port(port, 0, destid, hopcount, 0); | 458 | rio_enable_rx_tx_port(port, 0, destid, hopcount, 0); |
460 | 459 | ||
461 | dev_set_name(&rdev->dev, "%02x:e:%04x", rdev->net->id, | 460 | dev_set_name(&rdev->dev, "%02x:e:%04x", rdev->net->id, |
462 | rdev->destid); | 461 | rdev->comp_tag & RIO_CTAG_UDEVID); |
463 | } | 462 | } |
464 | 463 | ||
465 | rio_attach_device(rdev); | 464 | rio_attach_device(rdev); |
diff --git a/include/linux/rio.h b/include/linux/rio.h index e2faf7b8fe80..b71d5738e683 100644 --- a/include/linux/rio.h +++ b/include/linux/rio.h | |||
@@ -92,7 +92,6 @@ union rio_pw_msg; | |||
92 | /** | 92 | /** |
93 | * struct rio_switch - RIO switch info | 93 | * struct rio_switch - RIO switch info |
94 | * @node: Node in global list of switches | 94 | * @node: Node in global list of switches |
95 | * @switchid: Switch ID that is unique across a network | ||
96 | * @route_table: Copy of switch routing table | 95 | * @route_table: Copy of switch routing table |
97 | * @port_ok: Status of each port (one bit per port) - OK=1 or UNINIT=0 | 96 | * @port_ok: Status of each port (one bit per port) - OK=1 or UNINIT=0 |
98 | * @ops: pointer to switch-specific operations | 97 | * @ops: pointer to switch-specific operations |
@@ -101,7 +100,6 @@ union rio_pw_msg; | |||
101 | */ | 100 | */ |
102 | struct rio_switch { | 101 | struct rio_switch { |
103 | struct list_head node; | 102 | struct list_head node; |
104 | u16 switchid; | ||
105 | u8 *route_table; | 103 | u8 *route_table; |
106 | u32 port_ok; | 104 | u32 port_ok; |
107 | struct rio_switch_ops *ops; | 105 | struct rio_switch_ops *ops; |