Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6
* 'merge' of git://git.secretlab.ca/git/linux-2.6: of/powerpc: fix fsl_msi device node pointer of/watchdog: gef_wdt.c: fix build breakage of/edac: fix build breakage in drivers of/net: fs_enet/mii-bitbang.c: fix build breakage of/usb: fsl_qe_udc.c: fix build breakage of/crypto: crypto4xx_core.c: fix build breakage of/dma: fix build breakage in ppc4xx adma driver of/mtd: nand: fix build breakage in drivers of/video: fix build breakage in FB drivers of/pcmcia: m8xx_pcmcia.c: Fix build failures of/rtc: rtc-mpc5121.c: Fix build failures of/dma: mpc512x_dma.c: Fix build failures of/mtd/nand: mpc5121_nfc.c: Fix build failures of/spi: mpc512x_psc_spi.c: Fix build failures watchdog: Fix build failure with OF changes of/spi: Fix build failure on spi_ppc4xx.c of/usb: fix build error due to of_node pointer move of/powerpc: fix 85xx RapidIO device node pointer
This commit is contained in:
Коммит
a652883a24
|
@ -347,7 +347,7 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev,
|
|||
goto error_out;
|
||||
}
|
||||
offset = 0;
|
||||
p = of_get_property(dev->node, "msi-available-ranges", &len);
|
||||
p = of_get_property(dev->dev.of_node, "msi-available-ranges", &len);
|
||||
if (p)
|
||||
offset = *p / IRQS_PER_MSI_REG;
|
||||
|
||||
|
|
|
@ -1426,7 +1426,7 @@ int fsl_rio_setup(struct of_device *dev)
|
|||
port->iores.flags = IORESOURCE_MEM;
|
||||
port->iores.name = "rio_io_win";
|
||||
|
||||
priv->pwirq = irq_of_parse_and_map(dev->node, 0);
|
||||
priv->pwirq = irq_of_parse_and_map(dev->dev.of_node, 0);
|
||||
priv->bellirq = irq_of_parse_and_map(dev->dev.of_node, 2);
|
||||
priv->txirq = irq_of_parse_and_map(dev->dev.of_node, 3);
|
||||
priv->rxirq = irq_of_parse_and_map(dev->dev.of_node, 4);
|
||||
|
|
|
@ -1158,7 +1158,7 @@ static int __init crypto4xx_probe(struct of_device *ofdev,
|
|||
struct device *dev = &ofdev->dev;
|
||||
struct crypto4xx_core_device *core_dev;
|
||||
|
||||
rc = of_address_to_resource(ofdev->node, 0, &res);
|
||||
rc = of_address_to_resource(ofdev->dev.of_node, 0, &res);
|
||||
if (rc)
|
||||
return -ENODEV;
|
||||
|
||||
|
@ -1215,13 +1215,13 @@ static int __init crypto4xx_probe(struct of_device *ofdev,
|
|||
(unsigned long) dev);
|
||||
|
||||
/* Register for Crypto isr, Crypto Engine IRQ */
|
||||
core_dev->irq = irq_of_parse_and_map(ofdev->node, 0);
|
||||
core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0);
|
||||
rc = request_irq(core_dev->irq, crypto4xx_ce_interrupt_handler, 0,
|
||||
core_dev->dev->name, dev);
|
||||
if (rc)
|
||||
goto err_request_irq;
|
||||
|
||||
core_dev->dev->ce_base = of_iomap(ofdev->node, 0);
|
||||
core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0);
|
||||
if (!core_dev->dev->ce_base) {
|
||||
dev_err(dev, "failed to of_iomap\n");
|
||||
goto err_iomap;
|
||||
|
|
|
@ -630,7 +630,7 @@ mpc_dma_prep_memcpy(struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
|
|||
static int __devinit mpc_dma_probe(struct of_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dn = op->node;
|
||||
struct device_node *dn = op->dev.of_node;
|
||||
struct device *dev = &op->dev;
|
||||
struct dma_device *dma;
|
||||
struct mpc_dma *mdma;
|
||||
|
@ -771,12 +771,12 @@ static struct of_device_id mpc_dma_match[] = {
|
|||
};
|
||||
|
||||
static struct of_platform_driver mpc_dma_driver = {
|
||||
.match_table = mpc_dma_match,
|
||||
.probe = mpc_dma_probe,
|
||||
.remove = __devexit_p(mpc_dma_remove),
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc_dma_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -4394,7 +4394,7 @@ static void ppc440spe_adma_release_irqs(struct ppc440spe_adma_device *adev,
|
|||
static int __devinit ppc440spe_adma_probe(struct of_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
struct resource res;
|
||||
struct ppc440spe_adma_device *adev;
|
||||
struct ppc440spe_adma_chan *chan;
|
||||
|
@ -4626,7 +4626,7 @@ out:
|
|||
static int __devexit ppc440spe_adma_remove(struct of_device *ofdev)
|
||||
{
|
||||
struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev);
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
struct resource res;
|
||||
struct dma_chan *chan, *_chan;
|
||||
struct ppc_dma_chan_ref *ref, *_ref;
|
||||
|
|
|
@ -229,7 +229,7 @@ static int __devinit mpc85xx_pci_err_probe(struct of_device *op,
|
|||
|
||||
pdata->edac_idx = edac_pci_idx++;
|
||||
|
||||
res = of_address_to_resource(op->node, 0, &r);
|
||||
res = of_address_to_resource(op->dev.of_node, 0, &r);
|
||||
if (res) {
|
||||
printk(KERN_ERR "%s: Unable to get resource for "
|
||||
"PCI err regs\n", __func__);
|
||||
|
@ -274,7 +274,7 @@ static int __devinit mpc85xx_pci_err_probe(struct of_device *op,
|
|||
}
|
||||
|
||||
if (edac_op_state == EDAC_OPSTATE_INT) {
|
||||
pdata->irq = irq_of_parse_and_map(op->node, 0);
|
||||
pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0);
|
||||
res = devm_request_irq(&op->dev, pdata->irq,
|
||||
mpc85xx_pci_isr, IRQF_DISABLED,
|
||||
"[EDAC] PCI err", pci);
|
||||
|
@ -529,7 +529,7 @@ static int __devinit mpc85xx_l2_err_probe(struct of_device *op,
|
|||
edac_dev->ctl_name = pdata->name;
|
||||
edac_dev->dev_name = pdata->name;
|
||||
|
||||
res = of_address_to_resource(op->node, 0, &r);
|
||||
res = of_address_to_resource(op->dev.of_node, 0, &r);
|
||||
if (res) {
|
||||
printk(KERN_ERR "%s: Unable to get resource for "
|
||||
"L2 err regs\n", __func__);
|
||||
|
@ -576,7 +576,7 @@ static int __devinit mpc85xx_l2_err_probe(struct of_device *op,
|
|||
}
|
||||
|
||||
if (edac_op_state == EDAC_OPSTATE_INT) {
|
||||
pdata->irq = irq_of_parse_and_map(op->node, 0);
|
||||
pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0);
|
||||
res = devm_request_irq(&op->dev, pdata->irq,
|
||||
mpc85xx_l2_isr, IRQF_DISABLED,
|
||||
"[EDAC] L2 err", edac_dev);
|
||||
|
@ -978,7 +978,7 @@ static int __devinit mpc85xx_mc_err_probe(struct of_device *op,
|
|||
mci->ctl_name = pdata->name;
|
||||
mci->dev_name = pdata->name;
|
||||
|
||||
res = of_address_to_resource(op->node, 0, &r);
|
||||
res = of_address_to_resource(op->dev.of_node, 0, &r);
|
||||
if (res) {
|
||||
printk(KERN_ERR "%s: Unable to get resource for MC err regs\n",
|
||||
__func__);
|
||||
|
@ -1052,7 +1052,7 @@ static int __devinit mpc85xx_mc_err_probe(struct of_device *op,
|
|||
out_be32(pdata->mc_vbase + MPC85XX_MC_ERR_SBE, 0x10000);
|
||||
|
||||
/* register interrupts */
|
||||
pdata->irq = irq_of_parse_and_map(op->node, 0);
|
||||
pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0);
|
||||
res = devm_request_irq(&op->dev, pdata->irq,
|
||||
mpc85xx_mc_isr,
|
||||
IRQF_DISABLED | IRQF_SHARED,
|
||||
|
|
|
@ -1022,7 +1022,7 @@ ppc4xx_edac_mc_init(struct mem_ctl_info *mci,
|
|||
int status = 0;
|
||||
const u32 memcheck = (mcopt1 & SDRAM_MCOPT1_MCHK_MASK);
|
||||
struct ppc4xx_edac_pdata *pdata = NULL;
|
||||
const struct device_node *np = op->node;
|
||||
const struct device_node *np = op->dev.of_node;
|
||||
|
||||
if (match == NULL)
|
||||
return -EINVAL;
|
||||
|
@ -1113,7 +1113,7 @@ ppc4xx_edac_register_irq(struct of_device *op, struct mem_ctl_info *mci)
|
|||
int status = 0;
|
||||
int ded_irq, sec_irq;
|
||||
struct ppc4xx_edac_pdata *pdata = mci->pvt_info;
|
||||
struct device_node *np = op->node;
|
||||
struct device_node *np = op->dev.of_node;
|
||||
|
||||
ded_irq = irq_of_parse_and_map(np, INTMAP_ECCDED_INDEX);
|
||||
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)
|
|||
int status = 0;
|
||||
u32 mcopt1, memcheck;
|
||||
dcr_host_t dcr_host;
|
||||
const struct device_node *np = op->node;
|
||||
const struct device_node *np = op->dev.of_node;
|
||||
struct mem_ctl_info *mci = NULL;
|
||||
static int ppc4xx_edac_instance;
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
if (!fun)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = of_address_to_resource(ofdev->node, 0, &io_res);
|
||||
ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res);
|
||||
if (ret) {
|
||||
dev_err(&ofdev->dev, "can't get IO base\n");
|
||||
goto err1;
|
||||
|
@ -244,7 +244,8 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
goto err1;
|
||||
}
|
||||
|
||||
prop = of_get_property(ofdev->node, "fsl,upm-addr-offset", &size);
|
||||
prop = of_get_property(ofdev->dev.of_node, "fsl,upm-addr-offset",
|
||||
&size);
|
||||
if (!prop || size != sizeof(uint32_t)) {
|
||||
dev_err(&ofdev->dev, "can't get UPM address offset\n");
|
||||
ret = -EINVAL;
|
||||
|
@ -252,7 +253,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
}
|
||||
fun->upm_addr_offset = *prop;
|
||||
|
||||
prop = of_get_property(ofdev->node, "fsl,upm-cmd-offset", &size);
|
||||
prop = of_get_property(ofdev->dev.of_node, "fsl,upm-cmd-offset", &size);
|
||||
if (!prop || size != sizeof(uint32_t)) {
|
||||
dev_err(&ofdev->dev, "can't get UPM command offset\n");
|
||||
ret = -EINVAL;
|
||||
|
@ -260,7 +261,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
}
|
||||
fun->upm_cmd_offset = *prop;
|
||||
|
||||
prop = of_get_property(ofdev->node,
|
||||
prop = of_get_property(ofdev->dev.of_node,
|
||||
"fsl,upm-addr-line-cs-offsets", &size);
|
||||
if (prop && (size / sizeof(uint32_t)) > 0) {
|
||||
fun->mchip_count = size / sizeof(uint32_t);
|
||||
|
@ -276,7 +277,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
|
||||
for (i = 0; i < fun->mchip_count; i++) {
|
||||
fun->rnb_gpio[i] = -1;
|
||||
rnb_gpio = of_get_gpio(ofdev->node, i);
|
||||
rnb_gpio = of_get_gpio(ofdev->dev.of_node, i);
|
||||
if (rnb_gpio >= 0) {
|
||||
ret = gpio_request(rnb_gpio, dev_name(&ofdev->dev));
|
||||
if (ret) {
|
||||
|
@ -292,13 +293,13 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
}
|
||||
}
|
||||
|
||||
prop = of_get_property(ofdev->node, "chip-delay", NULL);
|
||||
prop = of_get_property(ofdev->dev.of_node, "chip-delay", NULL);
|
||||
if (prop)
|
||||
fun->chip_delay = *prop;
|
||||
else
|
||||
fun->chip_delay = 50;
|
||||
|
||||
prop = of_get_property(ofdev->node, "fsl,upm-wait-flags", &size);
|
||||
prop = of_get_property(ofdev->dev.of_node, "fsl,upm-wait-flags", &size);
|
||||
if (prop && size == sizeof(uint32_t))
|
||||
fun->wait_flags = *prop;
|
||||
else
|
||||
|
@ -315,7 +316,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
|
|||
fun->dev = &ofdev->dev;
|
||||
fun->last_ctrl = NAND_CLE;
|
||||
|
||||
ret = fun_chip_init(fun, ofdev->node, &io_res);
|
||||
ret = fun_chip_init(fun, ofdev->dev.of_node, &io_res);
|
||||
if (ret)
|
||||
goto err2;
|
||||
|
||||
|
|
|
@ -650,7 +650,7 @@ static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd)
|
|||
static int __devinit mpc5121_nfc_probe(struct of_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *rootnode, *dn = op->node;
|
||||
struct device_node *rootnode, *dn = op->dev.of_node;
|
||||
struct device *dev = &op->dev;
|
||||
struct mpc5121_nfc_prv *prv;
|
||||
struct resource res;
|
||||
|
@ -889,12 +889,12 @@ static struct of_device_id mpc5121_nfc_match[] __devinitdata = {
|
|||
};
|
||||
|
||||
static struct of_platform_driver mpc5121_nfc_driver = {
|
||||
.match_table = mpc5121_nfc_match,
|
||||
.probe = mpc5121_nfc_probe,
|
||||
.remove = __devexit_p(mpc5121_nfc_remove),
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc5121_nfc_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ static int __devinit socrates_nand_probe(struct of_device *ofdev,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
host->io_base = of_iomap(ofdev->node, 0);
|
||||
host->io_base = of_iomap(ofdev->dev.of_node, 0);
|
||||
if (host->io_base == NULL) {
|
||||
printk(KERN_ERR "socrates_nand: ioremap failed\n");
|
||||
kfree(host);
|
||||
|
@ -244,7 +244,7 @@ static int __devinit socrates_nand_probe(struct of_device *ofdev,
|
|||
#ifdef CONFIG_MTD_OF_PARTS
|
||||
if (num_partitions == 0) {
|
||||
num_partitions = of_mtd_parse_partitions(&ofdev->dev,
|
||||
ofdev->node,
|
||||
ofdev->dev.of_node,
|
||||
&partitions);
|
||||
if (num_partitions < 0) {
|
||||
res = num_partitions;
|
||||
|
|
|
@ -169,7 +169,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
|
|||
|
||||
new_bus->name = "CPM2 Bitbanged MII",
|
||||
|
||||
ret = fs_mii_bitbang_init(new_bus, ofdev->node);
|
||||
ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node);
|
||||
if (ret)
|
||||
goto out_free_bus;
|
||||
|
||||
|
@ -181,7 +181,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
|
|||
new_bus->parent = &ofdev->dev;
|
||||
dev_set_drvdata(&ofdev->dev, new_bus);
|
||||
|
||||
ret = of_mdiobus_register(new_bus, ofdev->node);
|
||||
ret = of_mdiobus_register(new_bus, ofdev->dev.of_node);
|
||||
if (ret)
|
||||
goto out_free_irqs;
|
||||
|
||||
|
|
|
@ -1157,7 +1157,7 @@ static int __init m8xx_probe(struct of_device *ofdev,
|
|||
unsigned int i, m, hwirq;
|
||||
pcmconf8xx_t *pcmcia;
|
||||
int status;
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
|
||||
pcmcia_info("%s\n", version);
|
||||
|
||||
|
@ -1301,7 +1301,7 @@ static struct of_platform_driver m8xx_pcmcia_driver = {
|
|||
.driver = {
|
||||
.name = driver_name,
|
||||
.owner = THIS_MODULE,
|
||||
.match_table = m8xx_pcmcia_match,
|
||||
.of_match_table = m8xx_pcmcia_match,
|
||||
},
|
||||
.probe = m8xx_probe,
|
||||
.remove = m8xx_remove,
|
||||
|
|
|
@ -279,7 +279,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op,
|
|||
if (!rtc)
|
||||
return -ENOMEM;
|
||||
|
||||
rtc->regs = of_iomap(op->node, 0);
|
||||
rtc->regs = of_iomap(op->dev.of_node, 0);
|
||||
if (!rtc->regs) {
|
||||
dev_err(&op->dev, "%s: couldn't map io space\n", __func__);
|
||||
err = -ENOSYS;
|
||||
|
@ -290,7 +290,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op,
|
|||
|
||||
dev_set_drvdata(&op->dev, rtc);
|
||||
|
||||
rtc->irq = irq_of_parse_and_map(op->node, 1);
|
||||
rtc->irq = irq_of_parse_and_map(op->dev.of_node, 1);
|
||||
err = request_irq(rtc->irq, mpc5121_rtc_handler, IRQF_DISABLED,
|
||||
"mpc5121-rtc", &op->dev);
|
||||
if (err) {
|
||||
|
@ -299,7 +299,7 @@ static int __devinit mpc5121_rtc_probe(struct of_device *op,
|
|||
goto out_dispose;
|
||||
}
|
||||
|
||||
rtc->irq_periodic = irq_of_parse_and_map(op->node, 0);
|
||||
rtc->irq_periodic = irq_of_parse_and_map(op->dev.of_node, 0);
|
||||
err = request_irq(rtc->irq_periodic, mpc5121_rtc_handler_upd,
|
||||
IRQF_DISABLED, "mpc5121-rtc_upd", &op->dev);
|
||||
if (err) {
|
||||
|
@ -365,9 +365,11 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = {
|
|||
};
|
||||
|
||||
static struct of_platform_driver mpc5121_rtc_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "mpc5121-rtc",
|
||||
.match_table = mpc5121_rtc_match,
|
||||
.driver = {
|
||||
.name = "mpc5121-rtc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc5121_rtc_match,
|
||||
},
|
||||
.probe = mpc5121_rtc_probe,
|
||||
.remove = __devexit_p(mpc5121_rtc_remove),
|
||||
};
|
||||
|
|
|
@ -512,29 +512,29 @@ static int __init mpc512x_psc_spi_of_probe(struct of_device *op,
|
|||
u64 regaddr64, size64;
|
||||
s16 id = -1;
|
||||
|
||||
regaddr_p = of_get_address(op->node, 0, &size64, NULL);
|
||||
regaddr_p = of_get_address(op->dev.of_node, 0, &size64, NULL);
|
||||
if (!regaddr_p) {
|
||||
dev_err(&op->dev, "Invalid PSC address\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
regaddr64 = of_translate_address(op->node, regaddr_p);
|
||||
regaddr64 = of_translate_address(op->dev.of_node, regaddr_p);
|
||||
|
||||
/* get PSC id (0..11, used by port_config) */
|
||||
if (op->dev.platform_data == NULL) {
|
||||
const u32 *psc_nump;
|
||||
|
||||
psc_nump = of_get_property(op->node, "cell-index", NULL);
|
||||
psc_nump = of_get_property(op->dev.of_node, "cell-index", NULL);
|
||||
if (!psc_nump || *psc_nump > 11) {
|
||||
dev_err(&op->dev, "mpc512x_psc_spi: Device node %s "
|
||||
"has invalid cell-index property\n",
|
||||
op->node->full_name);
|
||||
op->dev.of_node->full_name);
|
||||
return -EINVAL;
|
||||
}
|
||||
id = *psc_nump;
|
||||
}
|
||||
|
||||
return mpc512x_psc_spi_do_probe(&op->dev, (u32) regaddr64, (u32) size64,
|
||||
irq_of_parse_and_map(op->node, 0), id);
|
||||
irq_of_parse_and_map(op->dev.of_node, 0), id);
|
||||
}
|
||||
|
||||
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[] = {
|
|||
MODULE_DEVICE_TABLE(of, mpc512x_psc_spi_of_match);
|
||||
|
||||
static struct of_platform_driver mpc512x_psc_spi_of_driver = {
|
||||
.match_table = mpc512x_psc_spi_of_match,
|
||||
.probe = mpc512x_psc_spi_of_probe,
|
||||
.remove = __exit_p(mpc512x_psc_spi_of_remove),
|
||||
.driver = {
|
||||
.name = "mpc512x-psc-spi",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc512x_psc_spi_of_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -397,7 +397,7 @@ static int __init spi_ppc4xx_of_probe(struct of_device *op,
|
|||
struct spi_master *master;
|
||||
struct spi_bitbang *bbp;
|
||||
struct resource resource;
|
||||
struct device_node *np = op->node;
|
||||
struct device_node *np = op->dev.of_node;
|
||||
struct device *dev = &op->dev;
|
||||
struct device_node *opbnp;
|
||||
int ret;
|
||||
|
|
|
@ -2400,7 +2400,7 @@ EXPORT_SYMBOL(usb_gadget_unregister_driver);
|
|||
static struct qe_udc __devinit *qe_udc_config(struct of_device *ofdev)
|
||||
{
|
||||
struct qe_udc *udc;
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
unsigned int tmp_addr = 0;
|
||||
struct usb_device_para __iomem *usbpram;
|
||||
unsigned int i;
|
||||
|
@ -2525,7 +2525,7 @@ static void qe_udc_release(struct device *dev)
|
|||
static int __devinit qe_udc_probe(struct of_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
struct qe_ep *ep;
|
||||
unsigned int ret = 0;
|
||||
unsigned int i;
|
||||
|
|
|
@ -151,7 +151,7 @@ static const struct hc_driver ehci_xilinx_of_hc_driver = {
|
|||
static int __devinit
|
||||
ehci_hcd_xilinx_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dn = op->node;
|
||||
struct device_node *dn = op->dev.of_node;
|
||||
struct usb_hcd *hcd;
|
||||
struct ehci_hcd *ehci;
|
||||
struct resource res;
|
||||
|
|
|
@ -275,7 +275,7 @@ static int __devinit bw2_do_default_mode(struct bw2_par *par,
|
|||
|
||||
static int __devinit bw2_probe(struct of_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct fb_info *info;
|
||||
struct bw2_par *par;
|
||||
int linebytes, err;
|
||||
|
|
|
@ -465,7 +465,7 @@ static void cg14_unmap_regs(struct of_device *op, struct fb_info *info,
|
|||
|
||||
static int __devinit cg14_probe(struct of_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct fb_info *info;
|
||||
struct cg14_par *par;
|
||||
int is_8mb, linebytes, i, err;
|
||||
|
|
|
@ -349,7 +349,7 @@ static int __devinit cg3_do_default_mode(struct cg3_par *par)
|
|||
static int __devinit cg3_probe(struct of_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct fb_info *info;
|
||||
struct cg3_par *par;
|
||||
int linebytes, err;
|
||||
|
|
|
@ -550,7 +550,7 @@ static void leo_unmap_regs(struct of_device *op, struct fb_info *info,
|
|||
static int __devinit leo_probe(struct of_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct fb_info *info;
|
||||
struct leo_par *par;
|
||||
int linebytes, err;
|
||||
|
|
|
@ -553,7 +553,7 @@ static int mb862xx_gdc_init(struct mb862xxfb_par *par)
|
|||
static int __devinit of_platform_mb862xx_probe(struct of_device *ofdev,
|
||||
const struct of_device_id *id)
|
||||
{
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
struct device *dev = &ofdev->dev;
|
||||
struct mb862xxfb_par *par;
|
||||
struct fb_info *info;
|
||||
|
|
|
@ -251,7 +251,7 @@ static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_no
|
|||
|
||||
static int __devinit p9100_probe(struct of_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct fb_info *info;
|
||||
struct p9100_par *par;
|
||||
int linebytes, err;
|
||||
|
|
|
@ -365,7 +365,7 @@ static void tcx_unmap_regs(struct of_device *op, struct fb_info *info,
|
|||
static int __devinit tcx_probe(struct of_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct fb_info *info;
|
||||
struct tcx_par *par;
|
||||
int linebytes, i, err;
|
||||
|
|
|
@ -273,7 +273,7 @@ static int __devinit gef_wdt_probe(struct of_device *dev,
|
|||
bus_clk = freq;
|
||||
|
||||
/* Map devices registers into memory */
|
||||
gef_wdt_regs = of_iomap(dev->node, 0);
|
||||
gef_wdt_regs = of_iomap(dev->dev.of_node, 0);
|
||||
if (gef_wdt_regs == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ static int __devinit mpc8xxx_wdt_probe(struct of_device *ofdev,
|
|||
const struct of_device_id *match)
|
||||
{
|
||||
int ret;
|
||||
struct device_node *np = ofdev->node;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
struct mpc8xxx_wdt_type *wdt_type = match->data;
|
||||
u32 freq = fsl_get_sys_freq();
|
||||
bool enabled;
|
||||
|
|
Загрузка…
Ссылка в новой задаче