aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sunqe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sunqe.c')
-rw-r--r--drivers/net/sunqe.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c
index be637dce944c..72b579c8d812 100644
--- a/drivers/net/sunqe.c
+++ b/drivers/net/sunqe.c
@@ -602,7 +602,6 @@ static int qe_start_xmit(struct sk_buff *skb, struct net_device *dev)
602 qep->tx_new = NEXT_TX(entry); 602 qep->tx_new = NEXT_TX(entry);
603 603
604 /* Get it going. */ 604 /* Get it going. */
605 dev->trans_start = jiffies;
606 sbus_writel(CREG_CTRL_TWAKEUP, qep->qcregs + CREG_CTRL); 605 sbus_writel(CREG_CTRL_TWAKEUP, qep->qcregs + CREG_CTRL);
607 606
608 dev->stats.tx_packets++; 607 dev->stats.tx_packets++;
@@ -627,7 +626,7 @@ static int qe_start_xmit(struct sk_buff *skb, struct net_device *dev)
627static void qe_set_multicast(struct net_device *dev) 626static void qe_set_multicast(struct net_device *dev)
628{ 627{
629 struct sunqe *qep = netdev_priv(dev); 628 struct sunqe *qep = netdev_priv(dev);
630 struct dev_mc_list *dmi; 629 struct netdev_hw_addr *ha;
631 u8 new_mconfig = qep->mconfig; 630 u8 new_mconfig = qep->mconfig;
632 char *addrs; 631 char *addrs;
633 int i; 632 int i;
@@ -651,8 +650,8 @@ static void qe_set_multicast(struct net_device *dev)
651 u8 *hbytes = (unsigned char *) &hash_table[0]; 650 u8 *hbytes = (unsigned char *) &hash_table[0];
652 651
653 memset(hash_table, 0, sizeof(hash_table)); 652 memset(hash_table, 0, sizeof(hash_table));
654 netdev_for_each_mc_addr(dmi, dev) { 653 netdev_for_each_mc_addr(ha, dev) {
655 addrs = dmi->dmi_addr; 654 addrs = ha->addr;
656 655
657 if (!(*addrs & 1)) 656 if (!(*addrs & 1))
658 continue; 657 continue;
@@ -696,7 +695,7 @@ static void qe_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
696 strcpy(info->version, "3.0"); 695 strcpy(info->version, "3.0");
697 696
698 op = qep->op; 697 op = qep->op;
699 regs = of_get_property(op->node, "reg", NULL); 698 regs = of_get_property(op->dev.of_node, "reg", NULL);
700 if (regs) 699 if (regs)
701 sprintf(info->bus_info, "SBUS:%d", regs->which_io); 700 sprintf(info->bus_info, "SBUS:%d", regs->which_io);
702 701
@@ -800,7 +799,7 @@ static struct sunqec * __devinit get_qec(struct of_device *child)
800 if (qec_global_reset(qecp->gregs)) 799 if (qec_global_reset(qecp->gregs))
801 goto fail; 800 goto fail;
802 801
803 qecp->qec_bursts = qec_get_burst(op->node); 802 qecp->qec_bursts = qec_get_burst(op->dev.of_node);
804 803
805 qec_init_once(qecp, op); 804 qec_init_once(qecp, op);
806 805
@@ -858,7 +857,7 @@ static int __devinit qec_ether_init(struct of_device *op)
858 857
859 res = -ENODEV; 858 res = -ENODEV;
860 859
861 i = of_getintprop_default(op->node, "channel#", -1); 860 i = of_getintprop_default(op->dev.of_node, "channel#", -1);
862 if (i == -1) 861 if (i == -1)
863 goto fail; 862 goto fail;
864 qe->channel = i; 863 qe->channel = i;
@@ -978,8 +977,11 @@ static const struct of_device_id qec_sbus_match[] = {
978MODULE_DEVICE_TABLE(of, qec_sbus_match); 977MODULE_DEVICE_TABLE(of, qec_sbus_match);
979 978
980static struct of_platform_driver qec_sbus_driver = { 979static struct of_platform_driver qec_sbus_driver = {
981 .name = "qec", 980 .driver = {
982 .match_table = qec_sbus_match, 981 .name = "qec",
982 .owner = THIS_MODULE,
983 .of_match_table = qec_sbus_match,
984 },
983 .probe = qec_sbus_probe, 985 .probe = qec_sbus_probe,
984 .remove = __devexit_p(qec_sbus_remove), 986 .remove = __devexit_p(qec_sbus_remove),
985}; 987};