diff options
Diffstat (limited to 'drivers/net/fec_8xx/fec_main.c')
-rw-r--r-- | drivers/net/fec_8xx/fec_main.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/net/fec_8xx/fec_main.c b/drivers/net/fec_8xx/fec_main.c index 7e4338097139..e17a1449ee10 100644 --- a/drivers/net/fec_8xx/fec_main.c +++ b/drivers/net/fec_8xx/fec_main.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * Released under the GPL | 10 | * Released under the GPL |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/config.h> | ||
14 | #include <linux/module.h> | 13 | #include <linux/module.h> |
15 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
16 | #include <linux/types.h> | 15 | #include <linux/types.h> |
@@ -31,6 +30,7 @@ | |||
31 | #include <linux/mii.h> | 30 | #include <linux/mii.h> |
32 | #include <linux/ethtool.h> | 31 | #include <linux/ethtool.h> |
33 | #include <linux/bitops.h> | 32 | #include <linux/bitops.h> |
33 | #include <linux/dma-mapping.h> | ||
34 | 34 | ||
35 | #include <asm/8xx_immap.h> | 35 | #include <asm/8xx_immap.h> |
36 | #include <asm/pgtable.h> | 36 | #include <asm/pgtable.h> |
@@ -38,7 +38,6 @@ | |||
38 | #include <asm/irq.h> | 38 | #include <asm/irq.h> |
39 | #include <asm/uaccess.h> | 39 | #include <asm/uaccess.h> |
40 | #include <asm/commproc.h> | 40 | #include <asm/commproc.h> |
41 | #include <asm/dma-mapping.h> | ||
42 | 41 | ||
43 | #include "fec_8xx.h" | 42 | #include "fec_8xx.h" |
44 | 43 | ||
@@ -1035,20 +1034,20 @@ static void fec_set_msglevel(struct net_device *dev, __u32 value) | |||
1035 | fep->msg_enable = value; | 1034 | fep->msg_enable = value; |
1036 | } | 1035 | } |
1037 | 1036 | ||
1038 | static struct ethtool_ops fec_ethtool_ops = { | 1037 | static const struct ethtool_ops fec_ethtool_ops = { |
1039 | .get_drvinfo = fec_get_drvinfo, | 1038 | .get_drvinfo = fec_get_drvinfo, |
1040 | .get_regs_len = fec_get_regs_len, | 1039 | .get_regs_len = fec_get_regs_len, |
1041 | .get_settings = fec_get_settings, | 1040 | .get_settings = fec_get_settings, |
1042 | .set_settings = fec_set_settings, | 1041 | .set_settings = fec_set_settings, |
1043 | .nway_reset = fec_nway_reset, | 1042 | .nway_reset = fec_nway_reset, |
1044 | .get_link = ethtool_op_get_link, | 1043 | .get_link = ethtool_op_get_link, |
1045 | .get_msglevel = fec_get_msglevel, | 1044 | .get_msglevel = fec_get_msglevel, |
1046 | .set_msglevel = fec_set_msglevel, | 1045 | .set_msglevel = fec_set_msglevel, |
1047 | .get_tx_csum = ethtool_op_get_tx_csum, | 1046 | .get_tx_csum = ethtool_op_get_tx_csum, |
1048 | .set_tx_csum = ethtool_op_set_tx_csum, /* local! */ | 1047 | .set_tx_csum = ethtool_op_set_tx_csum, /* local! */ |
1049 | .get_sg = ethtool_op_get_sg, | 1048 | .get_sg = ethtool_op_get_sg, |
1050 | .set_sg = ethtool_op_set_sg, | 1049 | .set_sg = ethtool_op_set_sg, |
1051 | .get_regs = fec_get_regs, | 1050 | .get_regs = fec_get_regs, |
1052 | }; | 1051 | }; |
1053 | 1052 | ||
1054 | static int fec_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 1053 | static int fec_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |