Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
This commit is contained in:
@@ -1013,7 +1013,7 @@ static int __devinit fs_enet_probe(struct of_device *ofdev,
|
||||
return -ENOMEM;
|
||||
|
||||
if (!IS_FEC(match)) {
|
||||
data = of_get_property(ofdev->node, "fsl,cpm-command", &len);
|
||||
data = of_get_property(ofdev->dev.of_node, "fsl,cpm-command", &len);
|
||||
if (!data || len != 4)
|
||||
goto out_free_fpi;
|
||||
|
||||
@@ -1025,8 +1025,8 @@ static int __devinit fs_enet_probe(struct of_device *ofdev,
|
||||
fpi->rx_copybreak = 240;
|
||||
fpi->use_napi = 1;
|
||||
fpi->napi_weight = 17;
|
||||
fpi->phy_node = of_parse_phandle(ofdev->node, "phy-handle", 0);
|
||||
if ((!fpi->phy_node) && (!of_get_property(ofdev->node, "fixed-link",
|
||||
fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0);
|
||||
if ((!fpi->phy_node) && (!of_get_property(ofdev->dev.of_node, "fixed-link",
|
||||
NULL)))
|
||||
goto out_free_fpi;
|
||||
|
||||
@@ -1059,7 +1059,7 @@ static int __devinit fs_enet_probe(struct of_device *ofdev,
|
||||
spin_lock_init(&fep->lock);
|
||||
spin_lock_init(&fep->tx_lock);
|
||||
|
||||
mac_addr = of_get_mac_address(ofdev->node);
|
||||
mac_addr = of_get_mac_address(ofdev->dev.of_node);
|
||||
if (mac_addr)
|
||||
memcpy(ndev->dev_addr, mac_addr, 6);
|
||||
|
||||
@@ -1156,8 +1156,11 @@ static struct of_device_id fs_enet_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, fs_enet_match);
|
||||
|
||||
static struct of_platform_driver fs_enet_driver = {
|
||||
.name = "fs_enet",
|
||||
.match_table = fs_enet_match,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "fs_enet",
|
||||
.of_match_table = fs_enet_match,
|
||||
},
|
||||
.probe = fs_enet_probe,
|
||||
.remove = fs_enet_remove,
|
||||
};
|
||||
|
@@ -88,19 +88,19 @@ static int do_pd_setup(struct fs_enet_private *fep)
|
||||
struct fs_platform_info *fpi = fep->fpi;
|
||||
int ret = -EINVAL;
|
||||
|
||||
fep->interrupt = of_irq_to_resource(ofdev->node, 0, NULL);
|
||||
fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL);
|
||||
if (fep->interrupt == NO_IRQ)
|
||||
goto out;
|
||||
|
||||
fep->fcc.fccp = of_iomap(ofdev->node, 0);
|
||||
fep->fcc.fccp = of_iomap(ofdev->dev.of_node, 0);
|
||||
if (!fep->fcc.fccp)
|
||||
goto out;
|
||||
|
||||
fep->fcc.ep = of_iomap(ofdev->node, 1);
|
||||
fep->fcc.ep = of_iomap(ofdev->dev.of_node, 1);
|
||||
if (!fep->fcc.ep)
|
||||
goto out_fccp;
|
||||
|
||||
fep->fcc.fcccp = of_iomap(ofdev->node, 2);
|
||||
fep->fcc.fcccp = of_iomap(ofdev->dev.of_node, 2);
|
||||
if (!fep->fcc.fcccp)
|
||||
goto out_ep;
|
||||
|
||||
|
@@ -98,11 +98,11 @@ static int do_pd_setup(struct fs_enet_private *fep)
|
||||
{
|
||||
struct of_device *ofdev = to_of_device(fep->dev);
|
||||
|
||||
fep->interrupt = of_irq_to_resource(ofdev->node, 0, NULL);
|
||||
fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL);
|
||||
if (fep->interrupt == NO_IRQ)
|
||||
return -EINVAL;
|
||||
|
||||
fep->fec.fecp = of_iomap(ofdev->node, 0);
|
||||
fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0);
|
||||
if (!fep->fcc.fccp)
|
||||
return -EINVAL;
|
||||
|
||||
|
@@ -98,15 +98,15 @@ static int do_pd_setup(struct fs_enet_private *fep)
|
||||
{
|
||||
struct of_device *ofdev = to_of_device(fep->dev);
|
||||
|
||||
fep->interrupt = of_irq_to_resource(ofdev->node, 0, NULL);
|
||||
fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL);
|
||||
if (fep->interrupt == NO_IRQ)
|
||||
return -EINVAL;
|
||||
|
||||
fep->scc.sccp = of_iomap(ofdev->node, 0);
|
||||
fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0);
|
||||
if (!fep->scc.sccp)
|
||||
return -EINVAL;
|
||||
|
||||
fep->scc.ep = of_iomap(ofdev->node, 1);
|
||||
fep->scc.ep = of_iomap(ofdev->dev.of_node, 1);
|
||||
if (!fep->scc.ep) {
|
||||
iounmap(fep->scc.sccp);
|
||||
return -EINVAL;
|
||||
|
@@ -224,8 +224,11 @@ static struct of_device_id fs_enet_mdio_bb_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, fs_enet_mdio_bb_match);
|
||||
|
||||
static struct of_platform_driver fs_enet_bb_mdio_driver = {
|
||||
.name = "fsl-bb-mdio",
|
||||
.match_table = fs_enet_mdio_bb_match,
|
||||
.driver = {
|
||||
.name = "fsl-bb-mdio",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fs_enet_mdio_bb_match,
|
||||
},
|
||||
.probe = fs_enet_mdio_probe,
|
||||
.remove = fs_enet_mdio_remove,
|
||||
};
|
||||
|
@@ -124,7 +124,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
|
||||
new_bus->write = &fs_enet_fec_mii_write;
|
||||
new_bus->reset = &fs_enet_fec_mii_reset;
|
||||
|
||||
ret = of_address_to_resource(ofdev->node, 0, &res);
|
||||
ret = of_address_to_resource(ofdev->dev.of_node, 0, &res);
|
||||
if (ret)
|
||||
goto out_res;
|
||||
|
||||
@@ -135,7 +135,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
|
||||
goto out_fec;
|
||||
|
||||
if (get_bus_freq) {
|
||||
clock = get_bus_freq(ofdev->node);
|
||||
clock = get_bus_freq(ofdev->dev.of_node);
|
||||
if (!clock) {
|
||||
/* Use maximum divider if clock is unknown */
|
||||
dev_warn(&ofdev->dev, "could not determine IPS clock\n");
|
||||
@@ -172,7 +172,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;
|
||||
|
||||
@@ -222,8 +222,11 @@ static struct of_device_id fs_enet_mdio_fec_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, fs_enet_mdio_fec_match);
|
||||
|
||||
static struct of_platform_driver fs_enet_fec_mdio_driver = {
|
||||
.name = "fsl-fec-mdio",
|
||||
.match_table = fs_enet_mdio_fec_match,
|
||||
.driver = {
|
||||
.name = "fsl-fec-mdio",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fs_enet_mdio_fec_match,
|
||||
},
|
||||
.probe = fs_enet_mdio_probe,
|
||||
.remove = fs_enet_mdio_remove,
|
||||
};
|
||||
|
Reference in New Issue
Block a user