diff options
Diffstat (limited to 'drivers/net/fs_enet/mac-fec.c')
-rw-r--r-- | drivers/net/fs_enet/mac-fec.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/net/fs_enet/mac-fec.c b/drivers/net/fs_enet/mac-fec.c index 8a311d1e435b..0a7d1c5c6524 100644 --- a/drivers/net/fs_enet/mac-fec.c +++ b/drivers/net/fs_enet/mac-fec.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/bitops.h> | 32 | #include <linux/bitops.h> |
33 | #include <linux/fs.h> | 33 | #include <linux/fs.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | #include <linux/of_device.h> | ||
35 | 36 | ||
36 | #include <asm/irq.h> | 37 | #include <asm/irq.h> |
37 | #include <asm/uaccess.h> | 38 | #include <asm/uaccess.h> |
@@ -43,10 +44,6 @@ | |||
43 | #include <asm/cpm1.h> | 44 | #include <asm/cpm1.h> |
44 | #endif | 45 | #endif |
45 | 46 | ||
46 | #ifdef CONFIG_PPC_CPM_NEW_BINDING | ||
47 | #include <asm/of_device.h> | ||
48 | #endif | ||
49 | |||
50 | #include "fs_enet.h" | 47 | #include "fs_enet.h" |
51 | #include "fec.h" | 48 | #include "fec.h" |
52 | 49 | ||
@@ -99,7 +96,6 @@ static int whack_reset(fec_t __iomem *fecp) | |||
99 | 96 | ||
100 | static int do_pd_setup(struct fs_enet_private *fep) | 97 | static int do_pd_setup(struct fs_enet_private *fep) |
101 | { | 98 | { |
102 | #ifdef CONFIG_PPC_CPM_NEW_BINDING | ||
103 | struct of_device *ofdev = to_of_device(fep->dev); | 99 | struct of_device *ofdev = to_of_device(fep->dev); |
104 | 100 | ||
105 | fep->interrupt = of_irq_to_resource(ofdev->node, 0, NULL); | 101 | fep->interrupt = of_irq_to_resource(ofdev->node, 0, NULL); |
@@ -111,23 +107,6 @@ static int do_pd_setup(struct fs_enet_private *fep) | |||
111 | return -EINVAL; | 107 | return -EINVAL; |
112 | 108 | ||
113 | return 0; | 109 | return 0; |
114 | #else | ||
115 | struct platform_device *pdev = to_platform_device(fep->dev); | ||
116 | struct resource *r; | ||
117 | |||
118 | /* Fill out IRQ field */ | ||
119 | fep->interrupt = platform_get_irq_byname(pdev,"interrupt"); | ||
120 | if (fep->interrupt < 0) | ||
121 | return -EINVAL; | ||
122 | |||
123 | r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs"); | ||
124 | fep->fec.fecp = ioremap(r->start, r->end - r->start + 1); | ||
125 | |||
126 | if(fep->fec.fecp == NULL) | ||
127 | return -EINVAL; | ||
128 | |||
129 | return 0; | ||
130 | #endif | ||
131 | } | 110 | } |
132 | 111 | ||
133 | #define FEC_NAPI_RX_EVENT_MSK (FEC_ENET_RXF | FEC_ENET_RXB) | 112 | #define FEC_NAPI_RX_EVENT_MSK (FEC_ENET_RXF | FEC_ENET_RXB) |