diff options
Diffstat (limited to 'arch/powerpc/platforms/ps3/repository.c')
-rw-r--r-- | arch/powerpc/platforms/ps3/repository.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/arch/powerpc/platforms/ps3/repository.c b/arch/powerpc/platforms/ps3/repository.c index 1c94824f7b63..8baf0503d92b 100644 --- a/arch/powerpc/platforms/ps3/repository.c +++ b/arch/powerpc/platforms/ps3/repository.c | |||
@@ -168,18 +168,15 @@ int ps3_repository_read_bus_str(unsigned int bus_index, const char *bus_str, | |||
168 | value, 0); | 168 | value, 0); |
169 | } | 169 | } |
170 | 170 | ||
171 | int ps3_repository_read_bus_id(unsigned int bus_index, unsigned int *bus_id) | 171 | int ps3_repository_read_bus_id(unsigned int bus_index, u64 *bus_id) |
172 | { | 172 | { |
173 | int result; | 173 | int result; |
174 | u64 v1; | ||
175 | u64 v2; /* unused */ | ||
176 | 174 | ||
177 | result = read_node(PS3_LPAR_ID_PME, | 175 | result = read_node(PS3_LPAR_ID_PME, |
178 | make_first_field("bus", bus_index), | 176 | make_first_field("bus", bus_index), |
179 | make_field("id", 0), | 177 | make_field("id", 0), |
180 | 0, 0, | 178 | 0, 0, |
181 | &v1, &v2); | 179 | bus_id, NULL); |
182 | *bus_id = v1; | ||
183 | return result; | 180 | return result; |
184 | } | 181 | } |
185 | 182 | ||
@@ -225,18 +222,16 @@ int ps3_repository_read_dev_str(unsigned int bus_index, | |||
225 | } | 222 | } |
226 | 223 | ||
227 | int ps3_repository_read_dev_id(unsigned int bus_index, unsigned int dev_index, | 224 | int ps3_repository_read_dev_id(unsigned int bus_index, unsigned int dev_index, |
228 | unsigned int *dev_id) | 225 | u64 *dev_id) |
229 | { | 226 | { |
230 | int result; | 227 | int result; |
231 | u64 v1; | ||
232 | 228 | ||
233 | result = read_node(PS3_LPAR_ID_PME, | 229 | result = read_node(PS3_LPAR_ID_PME, |
234 | make_first_field("bus", bus_index), | 230 | make_first_field("bus", bus_index), |
235 | make_field("dev", dev_index), | 231 | make_field("dev", dev_index), |
236 | make_field("id", 0), | 232 | make_field("id", 0), |
237 | 0, | 233 | 0, |
238 | &v1, 0); | 234 | dev_id, 0); |
239 | *dev_id = v1; | ||
240 | return result; | 235 | return result; |
241 | } | 236 | } |
242 | 237 | ||
@@ -332,7 +327,7 @@ int ps3_repository_find_device(struct ps3_repository_device *repo) | |||
332 | return result; | 327 | return result; |
333 | } | 328 | } |
334 | 329 | ||
335 | pr_debug("%s:%d: bus_type %u, bus_index %u, bus_id %u, num_dev %u\n", | 330 | pr_debug("%s:%d: bus_type %u, bus_index %u, bus_id %lu, num_dev %u\n", |
336 | __func__, __LINE__, tmp.bus_type, tmp.bus_index, tmp.bus_id, | 331 | __func__, __LINE__, tmp.bus_type, tmp.bus_index, tmp.bus_id, |
337 | num_dev); | 332 | num_dev); |
338 | 333 | ||
@@ -387,7 +382,7 @@ int ps3_repository_find_device(struct ps3_repository_device *repo) | |||
387 | return result; | 382 | return result; |
388 | } | 383 | } |
389 | 384 | ||
390 | pr_debug("%s:%d: found: dev_type %u, dev_index %u, dev_id %u\n", | 385 | pr_debug("%s:%d: found: dev_type %u, dev_index %u, dev_id %lu\n", |
391 | __func__, __LINE__, tmp.dev_type, tmp.dev_index, tmp.dev_id); | 386 | __func__, __LINE__, tmp.dev_type, tmp.dev_index, tmp.dev_id); |
392 | 387 | ||
393 | *repo = tmp; | 388 | *repo = tmp; |
@@ -1034,7 +1029,7 @@ static int dump_device_info(struct ps3_repository_device *repo, | |||
1034 | continue; | 1029 | continue; |
1035 | } | 1030 | } |
1036 | 1031 | ||
1037 | pr_debug("%s:%d (%u:%u): dev_type %u, dev_id %u\n", __func__, | 1032 | pr_debug("%s:%d (%u:%u): dev_type %u, dev_id %lu\n", __func__, |
1038 | __LINE__, repo->bus_index, repo->dev_index, | 1033 | __LINE__, repo->bus_index, repo->dev_index, |
1039 | repo->dev_type, repo->dev_id); | 1034 | repo->dev_type, repo->dev_id); |
1040 | 1035 | ||
@@ -1091,7 +1086,7 @@ int ps3_repository_dump_bus_info(void) | |||
1091 | continue; | 1086 | continue; |
1092 | } | 1087 | } |
1093 | 1088 | ||
1094 | pr_debug("%s:%d bus_%u: bus_type %u, bus_id %u, num_dev %u\n", | 1089 | pr_debug("%s:%d bus_%u: bus_type %u, bus_id %lu, num_dev %u\n", |
1095 | __func__, __LINE__, repo.bus_index, repo.bus_type, | 1090 | __func__, __LINE__, repo.bus_index, repo.bus_type, |
1096 | repo.bus_id, num_dev); | 1091 | repo.bus_id, num_dev); |
1097 | 1092 | ||