diff options
Diffstat (limited to 'arch/sparc64/kernel/pci_msi.c')
-rw-r--r-- | arch/sparc64/kernel/pci_msi.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/sparc64/kernel/pci_msi.c b/arch/sparc64/kernel/pci_msi.c index 60c71e350212..2e680f34f727 100644 --- a/arch/sparc64/kernel/pci_msi.c +++ b/arch/sparc64/kernel/pci_msi.c | |||
@@ -323,7 +323,7 @@ void sparc64_pbm_msi_init(struct pci_pbm_info *pbm, | |||
323 | const u32 *val; | 323 | const u32 *val; |
324 | int len; | 324 | int len; |
325 | 325 | ||
326 | val = of_get_property(pbm->prom_node, "#msi-eqs", &len); | 326 | val = of_get_property(pbm->op->node, "#msi-eqs", &len); |
327 | if (!val || len != 4) | 327 | if (!val || len != 4) |
328 | goto no_msi; | 328 | goto no_msi; |
329 | pbm->msiq_num = *val; | 329 | pbm->msiq_num = *val; |
@@ -346,16 +346,16 @@ void sparc64_pbm_msi_init(struct pci_pbm_info *pbm, | |||
346 | u32 msi64_len; | 346 | u32 msi64_len; |
347 | } *arng; | 347 | } *arng; |
348 | 348 | ||
349 | val = of_get_property(pbm->prom_node, "msi-eq-size", &len); | 349 | val = of_get_property(pbm->op->node, "msi-eq-size", &len); |
350 | if (!val || len != 4) | 350 | if (!val || len != 4) |
351 | goto no_msi; | 351 | goto no_msi; |
352 | 352 | ||
353 | pbm->msiq_ent_count = *val; | 353 | pbm->msiq_ent_count = *val; |
354 | 354 | ||
355 | mqp = of_get_property(pbm->prom_node, | 355 | mqp = of_get_property(pbm->op->node, |
356 | "msi-eq-to-devino", &len); | 356 | "msi-eq-to-devino", &len); |
357 | if (!mqp) | 357 | if (!mqp) |
358 | mqp = of_get_property(pbm->prom_node, | 358 | mqp = of_get_property(pbm->op->node, |
359 | "msi-eq-devino", &len); | 359 | "msi-eq-devino", &len); |
360 | if (!mqp || len != sizeof(struct msiq_prop)) | 360 | if (!mqp || len != sizeof(struct msiq_prop)) |
361 | goto no_msi; | 361 | goto no_msi; |
@@ -363,27 +363,27 @@ void sparc64_pbm_msi_init(struct pci_pbm_info *pbm, | |||
363 | pbm->msiq_first = mqp->first_msiq; | 363 | pbm->msiq_first = mqp->first_msiq; |
364 | pbm->msiq_first_devino = mqp->first_devino; | 364 | pbm->msiq_first_devino = mqp->first_devino; |
365 | 365 | ||
366 | val = of_get_property(pbm->prom_node, "#msi", &len); | 366 | val = of_get_property(pbm->op->node, "#msi", &len); |
367 | if (!val || len != 4) | 367 | if (!val || len != 4) |
368 | goto no_msi; | 368 | goto no_msi; |
369 | pbm->msi_num = *val; | 369 | pbm->msi_num = *val; |
370 | 370 | ||
371 | mrng = of_get_property(pbm->prom_node, "msi-ranges", &len); | 371 | mrng = of_get_property(pbm->op->node, "msi-ranges", &len); |
372 | if (!mrng || len != sizeof(struct msi_range_prop)) | 372 | if (!mrng || len != sizeof(struct msi_range_prop)) |
373 | goto no_msi; | 373 | goto no_msi; |
374 | pbm->msi_first = mrng->first_msi; | 374 | pbm->msi_first = mrng->first_msi; |
375 | 375 | ||
376 | val = of_get_property(pbm->prom_node, "msi-data-mask", &len); | 376 | val = of_get_property(pbm->op->node, "msi-data-mask", &len); |
377 | if (!val || len != 4) | 377 | if (!val || len != 4) |
378 | goto no_msi; | 378 | goto no_msi; |
379 | pbm->msi_data_mask = *val; | 379 | pbm->msi_data_mask = *val; |
380 | 380 | ||
381 | val = of_get_property(pbm->prom_node, "msix-data-width", &len); | 381 | val = of_get_property(pbm->op->node, "msix-data-width", &len); |
382 | if (!val || len != 4) | 382 | if (!val || len != 4) |
383 | goto no_msi; | 383 | goto no_msi; |
384 | pbm->msix_data_width = *val; | 384 | pbm->msix_data_width = *val; |
385 | 385 | ||
386 | arng = of_get_property(pbm->prom_node, "msi-address-ranges", | 386 | arng = of_get_property(pbm->op->node, "msi-address-ranges", |
387 | &len); | 387 | &len); |
388 | if (!arng || len != sizeof(struct addr_range_prop)) | 388 | if (!arng || len != sizeof(struct addr_range_prop)) |
389 | goto no_msi; | 389 | goto no_msi; |