diff options
| -rw-r--r-- | drivers/edac/mpc85xx_edac.c | 12 | ||||
| -rw-r--r-- | drivers/edac/ppc4xx_edac.c | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index 6c1886b497ff..52ca09bf4726 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c | |||
| @@ -229,7 +229,7 @@ static int __devinit mpc85xx_pci_err_probe(struct of_device *op, | |||
| 229 | 229 | ||
| 230 | pdata->edac_idx = edac_pci_idx++; | 230 | pdata->edac_idx = edac_pci_idx++; |
| 231 | 231 | ||
| 232 | res = of_address_to_resource(op->node, 0, &r); | 232 | res = of_address_to_resource(op->dev.of_node, 0, &r); |
| 233 | if (res) { | 233 | if (res) { |
| 234 | printk(KERN_ERR "%s: Unable to get resource for " | 234 | printk(KERN_ERR "%s: Unable to get resource for " |
| 235 | "PCI err regs\n", __func__); | 235 | "PCI err regs\n", __func__); |
| @@ -274,7 +274,7 @@ static int __devinit mpc85xx_pci_err_probe(struct of_device *op, | |||
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | if (edac_op_state == EDAC_OPSTATE_INT) { | 276 | if (edac_op_state == EDAC_OPSTATE_INT) { |
| 277 | pdata->irq = irq_of_parse_and_map(op->node, 0); | 277 | pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0); |
| 278 | res = devm_request_irq(&op->dev, pdata->irq, | 278 | res = devm_request_irq(&op->dev, pdata->irq, |
| 279 | mpc85xx_pci_isr, IRQF_DISABLED, | 279 | mpc85xx_pci_isr, IRQF_DISABLED, |
| 280 | "[EDAC] PCI err", pci); | 280 | "[EDAC] PCI err", pci); |
| @@ -529,7 +529,7 @@ static int __devinit mpc85xx_l2_err_probe(struct of_device *op, | |||
| 529 | edac_dev->ctl_name = pdata->name; | 529 | edac_dev->ctl_name = pdata->name; |
| 530 | edac_dev->dev_name = pdata->name; | 530 | edac_dev->dev_name = pdata->name; |
| 531 | 531 | ||
| 532 | res = of_address_to_resource(op->node, 0, &r); | 532 | res = of_address_to_resource(op->dev.of_node, 0, &r); |
| 533 | if (res) { | 533 | if (res) { |
| 534 | printk(KERN_ERR "%s: Unable to get resource for " | 534 | printk(KERN_ERR "%s: Unable to get resource for " |
| 535 | "L2 err regs\n", __func__); | 535 | "L2 err regs\n", __func__); |
| @@ -576,7 +576,7 @@ static int __devinit mpc85xx_l2_err_probe(struct of_device *op, | |||
| 576 | } | 576 | } |
| 577 | 577 | ||
| 578 | if (edac_op_state == EDAC_OPSTATE_INT) { | 578 | if (edac_op_state == EDAC_OPSTATE_INT) { |
| 579 | pdata->irq = irq_of_parse_and_map(op->node, 0); | 579 | pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0); |
| 580 | res = devm_request_irq(&op->dev, pdata->irq, | 580 | res = devm_request_irq(&op->dev, pdata->irq, |
| 581 | mpc85xx_l2_isr, IRQF_DISABLED, | 581 | mpc85xx_l2_isr, IRQF_DISABLED, |
| 582 | "[EDAC] L2 err", edac_dev); | 582 | "[EDAC] L2 err", edac_dev); |
| @@ -978,7 +978,7 @@ static int __devinit mpc85xx_mc_err_probe(struct of_device *op, | |||
| 978 | mci->ctl_name = pdata->name; | 978 | mci->ctl_name = pdata->name; |
| 979 | mci->dev_name = pdata->name; | 979 | mci->dev_name = pdata->name; |
| 980 | 980 | ||
| 981 | res = of_address_to_resource(op->node, 0, &r); | 981 | res = of_address_to_resource(op->dev.of_node, 0, &r); |
| 982 | if (res) { | 982 | if (res) { |
| 983 | printk(KERN_ERR "%s: Unable to get resource for MC err regs\n", | 983 | printk(KERN_ERR "%s: Unable to get resource for MC err regs\n", |
| 984 | __func__); | 984 | __func__); |
| @@ -1052,7 +1052,7 @@ static int __devinit mpc85xx_mc_err_probe(struct of_device *op, | |||
| 1052 | out_be32(pdata->mc_vbase + MPC85XX_MC_ERR_SBE, 0x10000); | 1052 | out_be32(pdata->mc_vbase + MPC85XX_MC_ERR_SBE, 0x10000); |
| 1053 | 1053 | ||
| 1054 | /* register interrupts */ | 1054 | /* register interrupts */ |
| 1055 | pdata->irq = irq_of_parse_and_map(op->node, 0); | 1055 | pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0); |
| 1056 | res = devm_request_irq(&op->dev, pdata->irq, | 1056 | res = devm_request_irq(&op->dev, pdata->irq, |
| 1057 | mpc85xx_mc_isr, | 1057 | mpc85xx_mc_isr, |
| 1058 | IRQF_DISABLED | IRQF_SHARED, | 1058 | IRQF_DISABLED | IRQF_SHARED, |
diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c index 9d6f6783328c..e78839e89a06 100644 --- a/drivers/edac/ppc4xx_edac.c +++ b/drivers/edac/ppc4xx_edac.c | |||
| @@ -1022,7 +1022,7 @@ ppc4xx_edac_mc_init(struct mem_ctl_info *mci, | |||
| 1022 | int status = 0; | 1022 | int status = 0; |
| 1023 | const u32 memcheck = (mcopt1 & SDRAM_MCOPT1_MCHK_MASK); | 1023 | const u32 memcheck = (mcopt1 & SDRAM_MCOPT1_MCHK_MASK); |
| 1024 | struct ppc4xx_edac_pdata *pdata = NULL; | 1024 | struct ppc4xx_edac_pdata *pdata = NULL; |
| 1025 | const struct device_node *np = op->node; | 1025 | const struct device_node *np = op->dev.of_node; |
| 1026 | 1026 | ||
| 1027 | if (match == NULL) | 1027 | if (match == NULL) |
| 1028 | return -EINVAL; | 1028 | return -EINVAL; |
| @@ -1113,7 +1113,7 @@ ppc4xx_edac_register_irq(struct of_device *op, struct mem_ctl_info *mci) | |||
| 1113 | int status = 0; | 1113 | int status = 0; |
| 1114 | int ded_irq, sec_irq; | 1114 | int ded_irq, sec_irq; |
| 1115 | struct ppc4xx_edac_pdata *pdata = mci->pvt_info; | 1115 | struct ppc4xx_edac_pdata *pdata = mci->pvt_info; |
| 1116 | struct device_node *np = op->node; | 1116 | struct device_node *np = op->dev.of_node; |
| 1117 | 1117 | ||
| 1118 | ded_irq = irq_of_parse_and_map(np, INTMAP_ECCDED_INDEX); | 1118 | ded_irq = irq_of_parse_and_map(np, INTMAP_ECCDED_INDEX); |
| 1119 | sec_irq = irq_of_parse_and_map(np, INTMAP_ECCSEC_INDEX); | 1119 | sec_irq = irq_of_parse_and_map(np, INTMAP_ECCSEC_INDEX); |
| @@ -1243,7 +1243,7 @@ ppc4xx_edac_probe(struct of_device *op, const struct of_device_id *match) | |||
| 1243 | int status = 0; | 1243 | int status = 0; |
| 1244 | u32 mcopt1, memcheck; | 1244 | u32 mcopt1, memcheck; |
| 1245 | dcr_host_t dcr_host; | 1245 | dcr_host_t dcr_host; |
| 1246 | const struct device_node *np = op->node; | 1246 | const struct device_node *np = op->dev.of_node; |
| 1247 | struct mem_ctl_info *mci = NULL; | 1247 | struct mem_ctl_info *mci = NULL; |
| 1248 | static int ppc4xx_edac_instance; | 1248 | static int ppc4xx_edac_instance; |
| 1249 | 1249 | ||
