aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ieee1394/csr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ieee1394/csr.c b/drivers/ieee1394/csr.c
index 52ac83e0ebee..c90be4070e40 100644
--- a/drivers/ieee1394/csr.c
+++ b/drivers/ieee1394/csr.c
@@ -133,8 +133,7 @@ static void host_reset(struct hpsb_host *host)
133 host->csr.state &= ~0x100; 133 host->csr.state &= ~0x100;
134 } 134 }
135 135
136 host->csr.topology_map[1] = 136 be32_add_cpu(&host->csr.topology_map[1], 1);
137 cpu_to_be32(be32_to_cpu(host->csr.topology_map[1]) + 1);
138 host->csr.topology_map[2] = cpu_to_be32(host->node_count << 16 137 host->csr.topology_map[2] = cpu_to_be32(host->node_count << 16
139 | host->selfid_count); 138 | host->selfid_count);
140 host->csr.topology_map[0] = 139 host->csr.topology_map[0] =
@@ -142,8 +141,7 @@ static void host_reset(struct hpsb_host *host)
142 | csr_crc16(host->csr.topology_map + 1, 141 | csr_crc16(host->csr.topology_map + 1,
143 host->selfid_count + 2)); 142 host->selfid_count + 2));
144 143
145 host->csr.speed_map[1] = 144 be32_add_cpu(&host->csr.speed_map[1], 1);
146 cpu_to_be32(be32_to_cpu(host->csr.speed_map[1]) + 1);
147 host->csr.speed_map[0] = cpu_to_be32(0x3f1 << 16 145 host->csr.speed_map[0] = cpu_to_be32(0x3f1 << 16
148 | csr_crc16(host->csr.speed_map+1, 146 | csr_crc16(host->csr.speed_map+1,
149 0x3f1)); 147 0x3f1));