diff options
26 files changed, 67 insertions, 64 deletions
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index 0f5bee90ee4e..962c2d8dd8d9 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c | |||
| @@ -347,7 +347,7 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev, | |||
| 347 | goto error_out; | 347 | goto error_out; |
| 348 | } | 348 | } |
| 349 | offset = 0; | 349 | offset = 0; |
| 350 | p = of_get_property(dev->node, "msi-available-ranges", &len); | 350 | p = of_get_property(dev->dev.of_node, "msi-available-ranges", &len); |
| 351 | if (p) | 351 | if (p) |
| 352 | offset = *p / IRQS_PER_MSI_REG; | 352 | offset = *p / IRQS_PER_MSI_REG; |
| 353 | 353 | ||
diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index cd37e49e7034..30e1626b2e85 100644 --- a/arch/powerpc/sysdev/fsl_rio.c +++ b/arch/powerpc/sysdev/fsl_rio.c | |||
| @@ -1426,7 +1426,7 @@ int fsl_rio_setup(struct of_device *dev) | |||
| 1426 | port->iores.flags = IORESOURCE_MEM; | 1426 | port->iores.flags = IORESOURCE_MEM; |
| 1427 | port->iores.name = "rio_io_win"; | 1427 | port->iores.name = "rio_io_win"; |
| 1428 | 1428 | ||
| 1429 | priv->pwirq = irq_of_parse_and_map(dev->node, 0); | 1429 | priv->pwirq = irq_of_parse_and_map(dev->dev.of_node, 0); |
| 1430 | priv->bellirq = irq_of_parse_and_map(dev->dev.of_node, 2); | 1430 | priv->bellirq = irq_of_parse_and_map(dev->dev.of_node, 2); |
| 1431 | priv->txirq = irq_of_parse_and_map(dev->dev.of_node, 3); | 1431 | priv->txirq = irq_of_parse_and_map(dev->dev.of_node, 3); |
| 1432 | priv->rxirq = irq_of_parse_and_map(dev->dev.of_node, 4); | 1432 | priv->rxirq = irq_of_parse_and_map(dev->dev.of_node, 4); |
diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c index 9d65b371de64..983530ba04a7 100644 --- a/drivers/crypto/amcc/crypto4xx_core.c +++ b/drivers/crypto/amcc/crypto4xx_core.c | |||
| @@ -1158,7 +1158,7 @@ static int __init crypto4xx_probe(struct of_device *ofdev, | |||
| 1158 | struct device *dev = &ofdev->dev; | 1158 | struct device *dev = &ofdev->dev; |
| 1159 | struct crypto4xx_core_device *core_dev; | 1159 | struct crypto4xx_core_device *core_dev; |
| 1160 | 1160 | ||
| 1161 | rc = of_address_to_resource(ofdev->node, 0, &res); | 1161 | rc = of_address_to_resource(ofdev->dev.of_node, 0, &res); |
| 1162 | if (rc) | 1162 | if (rc) |
| 1163 | return -ENODEV; | 1163 | return -ENODEV; |
| 1164 | 1164 | ||
| @@ -1215,13 +1215,13 @@ static int __init crypto4xx_probe(struct of_device *ofdev, | |||
| 1215 | (unsigned long) dev); | 1215 | (unsigned long) dev); |
| 1216 | 1216 | ||
| 1217 | /* Register for Crypto isr, Crypto Engine IRQ */ | 1217 | /* Register for Crypto isr, Crypto Engine IRQ */ |
| 1218 | core_dev->irq = irq_of_parse_and_map(ofdev->node, 0); | 1218 | core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); |
| 1219 | rc = request_irq(core_dev->irq, crypto4xx_ce_interrupt_handler, 0, | 1219 | rc = request_irq(core_dev->irq, crypto4xx_ce_interrupt_handler, 0, |
| 1220 | core_dev->dev->name, dev); | 1220 | core_dev->dev->name, dev); |
| 1221 | if (rc) | 1221 | if (rc) |
| 1222 | goto err_request_irq; | 1222 | goto err_request_irq; |
| 1223 | 1223 | ||
| 1224 | core_dev->dev->ce_base = of_iomap(ofdev->node, 0); | 1224 | core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0); |
| 1225 | if (!core_dev->dev->ce_base) { | 1225 | if (!core_dev->dev->ce_base) { |
| 1226 | dev_err(dev, "failed to of_iomap\n"); | 1226 | dev_err(dev, "failed to of_iomap\n"); |
| 1227 | goto err_iomap; | 1227 | goto err_iomap; |
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c index 201e6e19c344..14a8c0f1698e 100644 --- a/drivers/dma/mpc512x_dma.c +++ b/drivers/dma/mpc512x_dma.c | |||
| @@ -630,7 +630,7 @@ mpc_dma_prep_memcpy(struct dma_chan *chan, dma_addr_t dst, dma_addr_t src, | |||
| 630 | static int __devinit mpc_dma_probe(struct of_device *op, | 630 | static int __devinit mpc_dma_probe(struct of_device *op, |
| 631 | const struct of_device_id *match) | 631 | const struct of_device_id *match) |
| 632 | { | 632 | { |
| 633 | struct device_node *dn = op->node; | 633 | struct device_node *dn = op->dev.of_node; |
| 634 | struct device *dev = &op->dev; | 634 | struct device *dev = &op->dev; |
| 635 | struct dma_device *dma; | 635 | struct dma_device *dma; |
| 636 | struct mpc_dma *mdma; | 636 | struct mpc_dma *mdma; |
| @@ -771,12 +771,12 @@ static struct of_device_id mpc_dma_match[] = { | |||
| 771 | }; | 771 | }; |
| 772 | 772 | ||
| 773 | static struct of_platform_driver mpc_dma_driver = { | 773 | static struct of_platform_driver mpc_dma_driver = { |
| 774 | .match_table = mpc_dma_match, | ||
| 775 | .probe = mpc_dma_probe, | 774 | .probe = mpc_dma_probe, |
| 776 | .remove = __devexit_p(mpc_dma_remove), | 775 | .remove = __devexit_p(mpc_dma_remove), |
| 777 | .driver = { | 776 | .driver = { |
| 778 | .name = DRV_NAME, | 777 | .name = DRV_NAME, |
| 779 | .owner = THIS_MODULE, | 778 | .owner = THIS_MODULE, |
| 779 | .of_match_table = mpc_dma_match, | ||
| 780 | }, | 780 | }, |
| 781 | }; | 781 | }; |
| 782 | 782 | ||
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index fa98abe4686f..5a22ca6927e5 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c | |||
| @@ -4394,7 +4394,7 @@ static void ppc440spe_adma_release_irqs(struct ppc440spe_adma_device *adev, | |||
| 4394 | static int __devinit ppc440spe_adma_probe(struct of_device *ofdev, | 4394 | static int __devinit ppc440spe_adma_probe(struct of_device *ofdev, |
| 4395 | const struct of_device_id *match) | 4395 | const struct of_device_id *match) |
| 4396 | { | 4396 | { |
| 4397 | struct device_node *np = ofdev->node; | 4397 | struct device_node *np = ofdev->dev.of_node; |
| 4398 | struct resource res; | 4398 | struct resource res; |
| 4399 | struct ppc440spe_adma_device *adev; | 4399 | struct ppc440spe_adma_device *adev; |
| 4400 | struct ppc440spe_adma_chan *chan; | 4400 | struct ppc440spe_adma_chan *chan; |
| @@ -4626,7 +4626,7 @@ out: | |||
| 4626 | static int __devexit ppc440spe_adma_remove(struct of_device *ofdev) | 4626 | static int __devexit ppc440spe_adma_remove(struct of_device *ofdev) |
| 4627 | { | 4627 | { |
| 4628 | struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); | 4628 | struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); |
| 4629 | struct device_node *np = ofdev->node; | 4629 | struct device_node *np = ofdev->dev.of_node; |
| 4630 | struct resource res; | 4630 | struct resource res; |
| 4631 | struct dma_chan *chan, *_chan; | 4631 | struct dma_chan *chan, *_chan; |
| 4632 | struct ppc_dma_chan_ref *ref, *_ref; | 4632 | struct ppc_dma_chan_ref *ref, *_ref; |
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 | ||
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c index 00aea6f7d1f1..1312eda57ba6 100644 --- a/drivers/mtd/nand/fsl_upm.c +++ b/drivers/mtd/nand/fsl_upm.c | |||
| @@ -232,7 +232,7 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 232 | if (!fun) | 232 | if (!fun) |
| 233 | return -ENOMEM; | 233 | return -ENOMEM; |
| 234 | 234 | ||
| 235 | ret = of_address_to_resource(ofdev->node, 0, &io_res); | 235 | ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res); |
| 236 | if (ret) { | 236 | if (ret) { |
| 237 | dev_err(&ofdev->dev, "can't get IO base\n"); | 237 | dev_err(&ofdev->dev, "can't get IO base\n"); |
| 238 | goto err1; | 238 | goto err1; |
| @@ -244,7 +244,8 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 244 | goto err1; | 244 | goto err1; |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | prop = of_get_property(ofdev->node, "fsl,upm-addr-offset", &size); | 247 | prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset", |
| 248 | &size); | ||
| 248 | if (!prop || size != sizeof(uint32_t)) { | 249 | if (!prop || size != sizeof(uint32_t)) { |
| 249 | dev_err(&ofdev->dev, "can't get UPM address offset\n"); | 250 | dev_err(&ofdev->dev, "can't get UPM address offset\n"); |
| 250 | ret = -EINVAL; | 251 | ret = -EINVAL; |
| @@ -252,7 +253,7 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 252 | } | 253 | } |
| 253 | fun->upm_addr_offset = *prop; | 254 | fun->upm_addr_offset = *prop; |
| 254 | 255 | ||
| 255 | prop = of_get_property(ofdev->node, "fsl,upm-cmd-offset", &size); | 256 | prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size); |
| 256 | if (!prop || size != sizeof(uint32_t)) { | 257 | if (!prop || size != sizeof(uint32_t)) { |
| 257 | dev_err(&ofdev->dev, "can't get UPM command offset\n"); | 258 | dev_err(&ofdev->dev, "can't get UPM command offset\n"); |
| 258 | ret = -EINVAL; | 259 | ret = -EINVAL; |
| @@ -260,7 +261,7 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 260 | } | 261 | } |
| 261 | fun->upm_cmd_offset = *prop; | 262 | fun->upm_cmd_offset = *prop; |
| 262 | 263 | ||
| 263 | prop = of_get_property(ofdev->node, | 264 | prop = of_get_property(ofdev->dev.of_node, |
| 264 | "fsl,upm-addr-line-cs-offsets", &size); | 265 | "fsl,upm-addr-line-cs-offsets", &size); |
| 265 | if (prop && (size / sizeof(uint32_t)) > 0) { | 266 | if (prop && (size / sizeof(uint32_t)) > 0) { |
| 266 | fun->mchip_count = size / sizeof(uint32_t); | 267 | fun->mchip_count = size / sizeof(uint32_t); |
| @@ -276,7 +277,7 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 276 | 277 | ||
| 277 | for (i = 0; i < fun->mchip_count; i++) { | 278 | for (i = 0; i < fun->mchip_count; i++) { |
| 278 | fun->rnb_gpio[i] = -1; | 279 | fun->rnb_gpio[i] = -1; |
| 279 | rnb_gpio = of_get_gpio(ofdev->node, i); | 280 | rnb_gpio = of_get_gpio(ofdev->dev.of_node, i); |
| 280 | if (rnb_gpio >= 0) { | 281 | if (rnb_gpio >= 0) { |
| 281 | ret = gpio_request(rnb_gpio, dev_name(&ofdev->dev)); | 282 | ret = gpio_request(rnb_gpio, dev_name(&ofdev->dev)); |
| 282 | if (ret) { | 283 | if (ret) { |
| @@ -292,13 +293,13 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 292 | } | 293 | } |
| 293 | } | 294 | } |
| 294 | 295 | ||
| 295 | prop = of_get_property(ofdev->node, "chip-delay", NULL); | 296 | prop = of_get_property(ofdev->dev.of_node, "chip-delay", NULL); |
| 296 | if (prop) | 297 | if (prop) |
| 297 | fun->chip_delay = *prop; | 298 | fun->chip_delay = *prop; |
| 298 | else | 299 | else |
| 299 | fun->chip_delay = 50; | 300 | fun->chip_delay = 50; |
| 300 | 301 | ||
| 301 | prop = of_get_property(ofdev->node, "fsl,upm-wait-flags", &size); | 302 | prop = of_get_property(ofdev->dev.of_node, "fsl,upm-wait-flags", &size); |
| 302 | if (prop && size == sizeof(uint32_t)) | 303 | if (prop && size == sizeof(uint32_t)) |
| 303 | fun->wait_flags = *prop; | 304 | fun->wait_flags = *prop; |
| 304 | else | 305 | else |
| @@ -315,7 +316,7 @@ static int __devinit fun_probe(struct of_device *ofdev, | |||
| 315 | fun->dev = &ofdev->dev; | 316 | fun->dev = &ofdev->dev; |
| 316 | fun->last_ctrl = NAND_CLE; | 317 | fun->last_ctrl = NAND_CLE; |
| 317 | 318 | ||
| 318 | ret = fun_chip_init(fun, ofdev->node, &io_res); | 319 | ret = fun_chip_init(fun, ofdev->dev.of_node, &io_res); |
| 319 | if (ret) | 320 | if (ret) |
| 320 | goto err2; | 321 | goto err2; |
| 321 | 322 | ||
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 3d0867d829cb..0a130dcaa129 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c | |||
| @@ -650,7 +650,7 @@ static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd) | |||
| 650 | static int __devinit mpc5121_nfc_probe(struct of_device *op, | 650 | static int __devinit mpc5121_nfc_probe(struct of_device *op, |
| 651 | const struct of_device_id *match) | 651 | const struct of_device_id *match) |
| 652 | { | 652 | { |
| 653 | struct device_node *rootnode, *dn = op->node; | 653 | struct device_node *rootnode, *dn = op->dev.of_node; |
| 654 | struct device *dev = &op->dev; | 654 | struct device *dev = &op->dev; |
| 655 | struct mpc5121_nfc_prv *prv; | 655 | struct mpc5121_nfc_prv *prv; |
| 656 | struct resource res; | 656 | struct resource res; |
| @@ -889,12 +889,12 @@ static struct of_device_id mpc5121_nfc_match[] __devinitdata = { | |||
| 889 | }; | 889 | }; |
| 890 | 890 | ||
| 891 | static struct of_platform_driver mpc5121_nfc_driver = { | 891 | static struct of_platform_driver mpc5121_nfc_driver = { |
| 892 | .match_table = mpc5121_nfc_match, | ||
| 893 | .probe = mpc5121_nfc_probe, | 892 | .probe = mpc5121_nfc_probe, |
| 894 | .remove = __devexit_p(mpc5121_nfc_remove), | 893 | .remove = __devexit_p(mpc5121_nfc_remove), |
| 895 | .driver = { | 894 | .driver = { |
| 896 | .name = DRV_NAME, | 895 | .name = DRV_NAME, |
| 897 | .owner = THIS_MODULE, | 896 | .owner = THIS_MODULE, |
| 897 | .of_match_table = mpc5121_nfc_match, | ||
| 898 | }, | 898 | }, |
| 899 | }; | 899 | }; |
| 900 | 900 | ||
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index 884852dc7eb4..cc728b12de82 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c | |||
| @@ -183,7 +183,7 @@ static int __devinit socrates_nand_probe(struct of_device *ofdev, | |||
| 183 | return -ENOMEM; | 183 | return -ENOMEM; |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | host->io_base = of_iomap(ofdev->node, 0); | 186 | host->io_base = of_iomap(ofdev->dev.of_node, 0); |
| 187 | if (host->io_base == NULL) { | 187 | if (host->io_base == NULL) { |
| 188 | printk(KERN_ERR "socrates_nand: ioremap failed\n"); | 188 | printk(KERN_ERR "socrates_nand: ioremap failed\n"); |
| 189 | kfree(host); | 189 | kfree(host); |
| @@ -244,7 +244,7 @@ static int __devinit socrates_nand_probe(struct of_device *ofdev, | |||
| 244 | #ifdef CONFIG_MTD_OF_PARTS | 244 | #ifdef CONFIG_MTD_OF_PARTS |
| 245 | if (num_partitions == 0) { | 245 | if (num_partitions == 0) { |
| 246 | num_partitions = of_mtd_parse_partitions(&ofdev->dev, | 246 | num_partitions = of_mtd_parse_partitions(&ofdev->dev, |
| 247 | ofdev->node, | 247 | ofdev->dev.of_node, |
| 248 | &partitions); | 248 | &partitions); |
| 249 | if (num_partitions < 0) { | 249 | if (num_partitions < 0) { |
| 250 | res = num_partitions; | 250 | res = num_partitions; |
diff --git a/drivers/net/fs_enet/mii-bitbang.c b/drivers/net/fs_enet/mii-bitbang.c index 0f90685d3d19..3607340f3da7 100644 --- a/drivers/net/fs_enet/mii-bitbang.c +++ b/drivers/net/fs_enet/mii-bitbang.c | |||
| @@ -169,7 +169,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, | |||
| 169 | 169 | ||
| 170 | new_bus->name = "CPM2 Bitbanged MII", | 170 | new_bus->name = "CPM2 Bitbanged MII", |
| 171 | 171 | ||
| 172 | ret = fs_mii_bitbang_init(new_bus, ofdev->node); | 172 | ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node); |
| 173 | if (ret) | 173 | if (ret) |
| 174 | goto out_free_bus; | 174 | goto out_free_bus; |
| 175 | 175 | ||
| @@ -181,7 +181,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, | |||
| 181 | new_bus->parent = &ofdev->dev; | 181 | new_bus->parent = &ofdev->dev; |
| 182 | dev_set_drvdata(&ofdev->dev, new_bus); | 182 | dev_set_drvdata(&ofdev->dev, new_bus); |
| 183 | 183 | ||
| 184 | ret = of_mdiobus_register(new_bus, ofdev->node); | 184 | ret = of_mdiobus_register(new_bus, ofdev->dev.of_node); |
| 185 | if (ret) | 185 | if (ret) |
| 186 | goto out_free_irqs; | 186 | goto out_free_irqs; |
| 187 | 187 | ||
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c index 1a648b90b634..25e5e30a18af 100644 --- a/drivers/pcmcia/m8xx_pcmcia.c +++ b/drivers/pcmcia/m8xx_pcmcia.c | |||
| @@ -1157,7 +1157,7 @@ static int __init m8xx_probe(struct of_device *ofdev, | |||
| 1157 | unsigned int i, m, hwirq; | 1157 | unsigned int i, m, hwirq; |
| 1158 | pcmconf8xx_t *pcmcia; | 1158 | pcmconf8xx_t *pcmcia; |
| 1159 | int status; | 1159 | int status; |
| 1160 | struct device_node *np = ofdev->node; | 1160 | struct device_node *np = ofdev->dev.of_node; |
| 1161 | 1161 | ||
| 1162 | pcmcia_info("%s\n", version); | 1162 | pcmcia_info("%s\n", version); |
| 1163 | 1163 | ||
| @@ -1301,7 +1301,7 @@ static struct of_platform_driver m8xx_pcmcia_driver = { | |||
| 1301 | .driver = { | 1301 | .driver = { |
| 1302 | .name = driver_name, | 1302 | .name = driver_name, |
| 1303 | .owner = THIS_MODULE, | 1303 | .owner = THIS_MODULE, |
| 1304 | .match_table = m8xx_pcmcia_match, | 1304 | .of_match_table = m8xx_pcmcia_match, |
| 1305 | }, | 1305 | }, |
| 1306 | .probe = m8xx_probe, | 1306 | .probe = m8xx_probe, |
| 1307 | .remove = m8xx_remove, | 1307 | .remove = m8xx_remove, |
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c index f0dbf9cb8f9c..db5d8c416d26 100644 --- a/drivers/rtc/rtc-mpc5121.c +++ b/drivers/rtc/rtc-mpc5121.c | |||
| @@ -279,7 +279,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op, | |||
| 279 | if (!rtc) | 279 | if (!rtc) |
| 280 | return -ENOMEM; | 280 | return -ENOMEM; |
| 281 | 281 | ||
| 282 | rtc->regs = of_iomap(op->node, 0); | 282 | rtc->regs = of_iomap(op->dev.of_node, 0); |
| 283 | if (!rtc->regs) { | 283 | if (!rtc->regs) { |
| 284 | dev_err(&op->dev, "%s: couldn't map io space\n", __func__); | 284 | dev_err(&op->dev, "%s: couldn't map io space\n", __func__); |
| 285 | err = -ENOSYS; | 285 | err = -ENOSYS; |
| @@ -290,7 +290,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op, | |||
| 290 | 290 | ||
| 291 | dev_set_drvdata(&op->dev, rtc); | 291 | dev_set_drvdata(&op->dev, rtc); |
| 292 | 292 | ||
| 293 | rtc->irq = irq_of_parse_and_map(op->node, 1); | 293 | rtc->irq = irq_of_parse_and_map(op->dev.of_node, 1); |
| 294 | err = request_irq(rtc->irq, mpc5121_rtc_handler, IRQF_DISABLED, | 294 | err = request_irq(rtc->irq, mpc5121_rtc_handler, IRQF_DISABLED, |
| 295 | "mpc5121-rtc", &op->dev); | 295 | "mpc5121-rtc", &op->dev); |
| 296 | if (err) { | 296 | if (err) { |
| @@ -299,7 +299,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op, | |||
| 299 | goto out_dispose; | 299 | goto out_dispose; |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | rtc->irq_periodic = irq_of_parse_and_map(op->node, 0); | 302 | rtc->irq_periodic = irq_of_parse_and_map(op->dev.of_node, 0); |
| 303 | err = request_irq(rtc->irq_periodic, mpc5121_rtc_handler_upd, | 303 | err = request_irq(rtc->irq_periodic, mpc5121_rtc_handler_upd, |
| 304 | IRQF_DISABLED, "mpc5121-rtc_upd", &op->dev); | 304 | IRQF_DISABLED, "mpc5121-rtc_upd", &op->dev); |
| 305 | if (err) { | 305 | if (err) { |
| @@ -365,9 +365,11 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = { | |||
| 365 | }; | 365 | }; |
| 366 | 366 | ||
| 367 | static struct of_platform_driver mpc5121_rtc_driver = { | 367 | static struct of_platform_driver mpc5121_rtc_driver = { |
| 368 | .owner = THIS_MODULE, | 368 | .driver = { |
| 369 | .name = "mpc5121-rtc", | 369 | .name = "mpc5121-rtc", |
| 370 | .match_table = mpc5121_rtc_match, | 370 | .owner = THIS_MODULE, |
| 371 | .of_match_table = mpc5121_rtc_match, | ||
| 372 | }, | ||
| 371 | .probe = mpc5121_rtc_probe, | 373 | .probe = mpc5121_rtc_probe, |
| 372 | .remove = __devexit_p(mpc5121_rtc_remove), | 374 | .remove = __devexit_p(mpc5121_rtc_remove), |
| 373 | }; | 375 | }; |
diff --git a/drivers/spi/mpc512x_psc_spi.c b/drivers/spi/mpc512x_psc_spi.c index 28a126d2742b..2534b1ec3edd 100644 --- a/drivers/spi/mpc512x_psc_spi.c +++ b/drivers/spi/mpc512x_psc_spi.c | |||
| @@ -512,29 +512,29 @@ static int __init mpc512x_psc_spi_of_probe(struct of_device *op, | |||
| 512 | u64 regaddr64, size64; | 512 | u64 regaddr64, size64; |
| 513 | s16 id = -1; | 513 | s16 id = -1; |
| 514 | 514 | ||
| 515 | regaddr_p = of_get_address(op->node, 0, &size64, NULL); | 515 | regaddr_p = of_get_address(op->dev.of_node, 0, &size64, NULL); |
| 516 | if (!regaddr_p) { | 516 | if (!regaddr_p) { |
| 517 | dev_err(&op->dev, "Invalid PSC address\n"); | 517 | dev_err(&op->dev, "Invalid PSC address\n"); |
| 518 | return -EINVAL; | 518 | return -EINVAL; |
| 519 | } | 519 | } |
| 520 | regaddr64 = of_translate_address(op->node, regaddr_p); | 520 | regaddr64 = of_translate_address(op->dev.of_node, regaddr_p); |
| 521 | 521 | ||
| 522 | /* get PSC id (0..11, used by port_config) */ | 522 | /* get PSC id (0..11, used by port_config) */ |
| 523 | if (op->dev.platform_data == NULL) { | 523 | if (op->dev.platform_data == NULL) { |
| 524 | const u32 *psc_nump; | 524 | const u32 *psc_nump; |
| 525 | 525 | ||
| 526 | psc_nump = of_get_property(op->node, "cell-index", NULL); | 526 | psc_nump = of_get_property(op->dev.of_node, "cell-index", NULL); |
| 527 | if (!psc_nump || *psc_nump > 11) { | 527 | if (!psc_nump || *psc_nump > 11) { |
| 528 | dev_err(&op->dev, "mpc512x_psc_spi: Device node %s " | 528 | dev_err(&op->dev, "mpc512x_psc_spi: Device node %s " |
| 529 | "has invalid cell-index property\n", | 529 | "has invalid cell-index property\n", |
| 530 | op->node->full_name); | 530 | op->dev.of_node->full_name); |
| 531 | return -EINVAL; | 531 | return -EINVAL; |
| 532 | } | 532 | } |
| 533 | id = *psc_nump; | 533 | id = *psc_nump; |
| 534 | } | 534 | } |
| 535 | 535 | ||
| 536 | return mpc512x_psc_spi_do_probe(&op->dev, (u32) regaddr64, (u32) size64, | 536 | return mpc512x_psc_spi_do_probe(&op->dev, (u32) regaddr64, (u32) size64, |
| 537 | irq_of_parse_and_map(op->node, 0), id); | 537 | irq_of_parse_and_map(op->dev.of_node, 0), id); |
| 538 | } | 538 | } |
| 539 | 539 | ||
| 540 | static int __exit mpc512x_psc_spi_of_remove(struct of_device *op) | 540 | static int __exit mpc512x_psc_spi_of_remove(struct of_device *op) |
| @@ -550,12 +550,12 @@ static struct of_device_id mpc512x_psc_spi_of_match[] = { | |||
| 550 | MODULE_DEVICE_TABLE(of, mpc512x_psc_spi_of_match); | 550 | MODULE_DEVICE_TABLE(of, mpc512x_psc_spi_of_match); |
| 551 | 551 | ||
| 552 | static struct of_platform_driver mpc512x_psc_spi_of_driver = { | 552 | static struct of_platform_driver mpc512x_psc_spi_of_driver = { |
| 553 | .match_table = mpc512x_psc_spi_of_match, | ||
| 554 | .probe = mpc512x_psc_spi_of_probe, | 553 | .probe = mpc512x_psc_spi_of_probe, |
| 555 | .remove = __exit_p(mpc512x_psc_spi_of_remove), | 554 | .remove = __exit_p(mpc512x_psc_spi_of_remove), |
| 556 | .driver = { | 555 | .driver = { |
| 557 | .name = "mpc512x-psc-spi", | 556 | .name = "mpc512x-psc-spi", |
| 558 | .owner = THIS_MODULE, | 557 | .owner = THIS_MODULE, |
| 558 | .of_match_table = mpc512x_psc_spi_of_match, | ||
| 559 | }, | 559 | }, |
| 560 | }; | 560 | }; |
| 561 | 561 | ||
diff --git a/drivers/spi/spi_ppc4xx.c b/drivers/spi/spi_ppc4xx.c index 19c0b3b34fce..d53466a249d9 100644 --- a/drivers/spi/spi_ppc4xx.c +++ b/drivers/spi/spi_ppc4xx.c | |||
| @@ -397,7 +397,7 @@ static int __init spi_ppc4xx_of_probe(struct of_device *op, | |||
| 397 | struct spi_master *master; | 397 | struct spi_master *master; |
| 398 | struct spi_bitbang *bbp; | 398 | struct spi_bitbang *bbp; |
| 399 | struct resource resource; | 399 | struct resource resource; |
| 400 | struct device_node *np = op->node; | 400 | struct device_node *np = op->dev.of_node; |
| 401 | struct device *dev = &op->dev; | 401 | struct device *dev = &op->dev; |
| 402 | struct device_node *opbnp; | 402 | struct device_node *opbnp; |
| 403 | int ret; | 403 | int ret; |
diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c index 2928523268b5..82506ca297d5 100644 --- a/drivers/usb/gadget/fsl_qe_udc.c +++ b/drivers/usb/gadget/fsl_qe_udc.c | |||
| @@ -2400,7 +2400,7 @@ EXPORT_SYMBOL(usb_gadget_unregister_driver); | |||
| 2400 | static struct qe_udc __devinit *qe_udc_config(struct of_device *ofdev) | 2400 | static struct qe_udc __devinit *qe_udc_config(struct of_device *ofdev) |
| 2401 | { | 2401 | { |
| 2402 | struct qe_udc *udc; | 2402 | struct qe_udc *udc; |
| 2403 | struct device_node *np = ofdev->node; | 2403 | struct device_node *np = ofdev->dev.of_node; |
| 2404 | unsigned int tmp_addr = 0; | 2404 | unsigned int tmp_addr = 0; |
| 2405 | struct usb_device_para __iomem *usbpram; | 2405 | struct usb_device_para __iomem *usbpram; |
| 2406 | unsigned int i; | 2406 | unsigned int i; |
| @@ -2525,7 +2525,7 @@ static void qe_udc_release(struct device *dev) | |||
| 2525 | static int __devinit qe_udc_probe(struct of_device *ofdev, | 2525 | static int __devinit qe_udc_probe(struct of_device *ofdev, |
| 2526 | const struct of_device_id *match) | 2526 | const struct of_device_id *match) |
| 2527 | { | 2527 | { |
| 2528 | struct device_node *np = ofdev->node; | 2528 | struct device_node *np = ofdev->dev.of_node; |
| 2529 | struct qe_ep *ep; | 2529 | struct qe_ep *ep; |
| 2530 | unsigned int ret = 0; | 2530 | unsigned int ret = 0; |
| 2531 | unsigned int i; | 2531 | unsigned int i; |
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index 013972bbde57..4899f451add9 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c | |||
| @@ -151,7 +151,7 @@ static const struct hc_driver ehci_xilinx_of_hc_driver = { | |||
| 151 | static int __devinit | 151 | static int __devinit |
| 152 | ehci_hcd_xilinx_of_probe(struct of_device *op, const struct of_device_id *match) | 152 | ehci_hcd_xilinx_of_probe(struct of_device *op, const struct of_device_id *match) |
| 153 | { | 153 | { |
| 154 | struct device_node *dn = op->node; | 154 | struct device_node *dn = op->dev.of_node; |
| 155 | struct usb_hcd *hcd; | 155 | struct usb_hcd *hcd; |
| 156 | struct ehci_hcd *ehci; | 156 | struct ehci_hcd *ehci; |
| 157 | struct resource res; | 157 | struct resource res; |
diff --git a/drivers/video/bw2.c b/drivers/video/bw2.c index 2c371c07f0da..09f1b9b462f4 100644 --- a/drivers/video/bw2.c +++ b/drivers/video/bw2.c | |||
| @@ -275,7 +275,7 @@ static int __devinit bw2_do_default_mode(struct bw2_par *par, | |||
| 275 | 275 | ||
| 276 | static int __devinit bw2_probe(struct of_device *op, const struct of_device_id *match) | 276 | static int __devinit bw2_probe(struct of_device *op, const struct of_device_id *match) |
| 277 | { | 277 | { |
| 278 | struct device_node *dp = op->node; | 278 | struct device_node *dp = op->dev.of_node; |
| 279 | struct fb_info *info; | 279 | struct fb_info *info; |
| 280 | struct bw2_par *par; | 280 | struct bw2_par *par; |
| 281 | int linebytes, err; | 281 | int linebytes, err; |
diff --git a/drivers/video/cg14.c b/drivers/video/cg14.c index d12e05b6e63f..e5dc2241194f 100644 --- a/drivers/video/cg14.c +++ b/drivers/video/cg14.c | |||
| @@ -465,7 +465,7 @@ static void cg14_unmap_regs(struct of_device *op, struct fb_info *info, | |||
| 465 | 465 | ||
| 466 | static int __devinit cg14_probe(struct of_device *op, const struct of_device_id *match) | 466 | static int __devinit cg14_probe(struct of_device *op, const struct of_device_id *match) |
| 467 | { | 467 | { |
| 468 | struct device_node *dp = op->node; | 468 | struct device_node *dp = op->dev.of_node; |
| 469 | struct fb_info *info; | 469 | struct fb_info *info; |
| 470 | struct cg14_par *par; | 470 | struct cg14_par *par; |
| 471 | int is_8mb, linebytes, i, err; | 471 | int is_8mb, linebytes, i, err; |
diff --git a/drivers/video/cg3.c b/drivers/video/cg3.c index b98f93f7f663..558d73a948a0 100644 --- a/drivers/video/cg3.c +++ b/drivers/video/cg3.c | |||
| @@ -349,7 +349,7 @@ static int __devinit cg3_do_default_mode(struct cg3_par *par) | |||
| 349 | static int __devinit cg3_probe(struct of_device *op, | 349 | static int __devinit cg3_probe(struct of_device *op, |
| 350 | const struct of_device_id *match) | 350 | const struct of_device_id *match) |
| 351 | { | 351 | { |
| 352 | struct device_node *dp = op->node; | 352 | struct device_node *dp = op->dev.of_node; |
| 353 | struct fb_info *info; | 353 | struct fb_info *info; |
| 354 | struct cg3_par *par; | 354 | struct cg3_par *par; |
| 355 | int linebytes, err; | 355 | int linebytes, err; |
diff --git a/drivers/video/leo.c b/drivers/video/leo.c index 3d7895316eaf..9e8bf7d5e249 100644 --- a/drivers/video/leo.c +++ b/drivers/video/leo.c | |||
| @@ -550,7 +550,7 @@ static void leo_unmap_regs(struct of_device *op, struct fb_info *info, | |||
| 550 | static int __devinit leo_probe(struct of_device *op, | 550 | static int __devinit leo_probe(struct of_device *op, |
| 551 | const struct of_device_id *match) | 551 | const struct of_device_id *match) |
| 552 | { | 552 | { |
| 553 | struct device_node *dp = op->node; | 553 | struct device_node *dp = op->dev.of_node; |
| 554 | struct fb_info *info; | 554 | struct fb_info *info; |
| 555 | struct leo_par *par; | 555 | struct leo_par *par; |
| 556 | int linebytes, err; | 556 | int linebytes, err; |
diff --git a/drivers/video/mb862xx/mb862xxfb.c b/drivers/video/mb862xx/mb862xxfb.c index 0540de4f5cb4..4e2b8cc3d460 100644 --- a/drivers/video/mb862xx/mb862xxfb.c +++ b/drivers/video/mb862xx/mb862xxfb.c | |||
| @@ -553,7 +553,7 @@ static int mb862xx_gdc_init(struct mb862xxfb_par *par) | |||
| 553 | static int __devinit of_platform_mb862xx_probe(struct of_device *ofdev, | 553 | static int __devinit of_platform_mb862xx_probe(struct of_device *ofdev, |
| 554 | const struct of_device_id *id) | 554 | const struct of_device_id *id) |
| 555 | { | 555 | { |
| 556 | struct device_node *np = ofdev->node; | 556 | struct device_node *np = ofdev->dev.of_node; |
| 557 | struct device *dev = &ofdev->dev; | 557 | struct device *dev = &ofdev->dev; |
| 558 | struct mb862xxfb_par *par; | 558 | struct mb862xxfb_par *par; |
| 559 | struct fb_info *info; | 559 | struct fb_info *info; |
diff --git a/drivers/video/p9100.c b/drivers/video/p9100.c index c85dd408a9b8..6552751e81aa 100644 --- a/drivers/video/p9100.c +++ b/drivers/video/p9100.c | |||
| @@ -251,7 +251,7 @@ static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_no | |||
| 251 | 251 | ||
| 252 | static int __devinit p9100_probe(struct of_device *op, const struct of_device_id *match) | 252 | static int __devinit p9100_probe(struct of_device *op, const struct of_device_id *match) |
| 253 | { | 253 | { |
| 254 | struct device_node *dp = op->node; | 254 | struct device_node *dp = op->dev.of_node; |
| 255 | struct fb_info *info; | 255 | struct fb_info *info; |
| 256 | struct p9100_par *par; | 256 | struct p9100_par *par; |
| 257 | int linebytes, err; | 257 | int linebytes, err; |
diff --git a/drivers/video/tcx.c b/drivers/video/tcx.c index ef7a7bd8b503..cc039b33d2d8 100644 --- a/drivers/video/tcx.c +++ b/drivers/video/tcx.c | |||
| @@ -365,7 +365,7 @@ static void tcx_unmap_regs(struct of_device *op, struct fb_info *info, | |||
| 365 | static int __devinit tcx_probe(struct of_device *op, | 365 | static int __devinit tcx_probe(struct of_device *op, |
| 366 | const struct of_device_id *match) | 366 | const struct of_device_id *match) |
| 367 | { | 367 | { |
| 368 | struct device_node *dp = op->node; | 368 | struct device_node *dp = op->dev.of_node; |
| 369 | struct fb_info *info; | 369 | struct fb_info *info; |
| 370 | struct tcx_par *par; | 370 | struct tcx_par *par; |
| 371 | int linebytes, i, err; | 371 | int linebytes, i, err; |
diff --git a/drivers/watchdog/gef_wdt.c b/drivers/watchdog/gef_wdt.c index ca0f4c6cf5ab..1df284f9c2a1 100644 --- a/drivers/watchdog/gef_wdt.c +++ b/drivers/watchdog/gef_wdt.c | |||
| @@ -273,7 +273,7 @@ static int __devinit gef_wdt_probe(struct of_device *dev, | |||
| 273 | bus_clk = freq; | 273 | bus_clk = freq; |
| 274 | 274 | ||
| 275 | /* Map devices registers into memory */ | 275 | /* Map devices registers into memory */ |
| 276 | gef_wdt_regs = of_iomap(dev->node, 0); | 276 | gef_wdt_regs = of_iomap(dev->dev.of_node, 0); |
| 277 | if (gef_wdt_regs == NULL) | 277 | if (gef_wdt_regs == NULL) |
| 278 | return -ENOMEM; | 278 | return -ENOMEM; |
| 279 | 279 | ||
diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index 6622335773bb..4cda64dd309c 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c | |||
| @@ -189,7 +189,7 @@ static int __devinit mpc8xxx_wdt_probe(struct of_device *ofdev, | |||
| 189 | const struct of_device_id *match) | 189 | const struct of_device_id *match) |
| 190 | { | 190 | { |
| 191 | int ret; | 191 | int ret; |
| 192 | struct device_node *np = ofdev->node; | 192 | struct device_node *np = ofdev->dev.of_node; |
| 193 | struct mpc8xxx_wdt_type *wdt_type = match->data; | 193 | struct mpc8xxx_wdt_type *wdt_type = match->data; |
| 194 | u32 freq = fsl_get_sys_freq(); | 194 | u32 freq = fsl_get_sys_freq(); |
| 195 | bool enabled; | 195 | bool enabled; |
