diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2009-12-11 19:16:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-12-11 19:16:33 -0500 |
commit | 3bc48014782a89f7201734d3e23865cb283926a7 (patch) | |
tree | f02691c3a2b919d49ba253060f7ce4d2296f9923 /arch/arm/mach-omap1/board-h3.c | |
parent | 662c8b55d26abeabc0b125f922dfa66338a046ae (diff) |
omap: use smc91x_platdata to setup smc91x
Use smc91x_platdata to setup smc91x, so we can get rid of OMAP specific stuff
in smc91x driver
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-h3.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index f5cc0a730524..e0aee66e43e6 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/input.h> | 28 | #include <linux/input.h> |
29 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
30 | #include <linux/i2c/tps65010.h> | 30 | #include <linux/i2c/tps65010.h> |
31 | #include <linux/smc91x.h> | ||
31 | 32 | ||
32 | #include <asm/setup.h> | 33 | #include <asm/setup.h> |
33 | #include <asm/page.h> | 34 | #include <asm/page.h> |
@@ -202,6 +203,12 @@ static struct platform_device nand_device = { | |||
202 | .resource = &nand_resource, | 203 | .resource = &nand_resource, |
203 | }; | 204 | }; |
204 | 205 | ||
206 | static struct smc91x_platdata smc91x_info = { | ||
207 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
208 | .leda = RPC_LED_100_10, | ||
209 | .ledb = RPC_LED_TX_RX, | ||
210 | }; | ||
211 | |||
205 | static struct resource smc91x_resources[] = { | 212 | static struct resource smc91x_resources[] = { |
206 | [0] = { | 213 | [0] = { |
207 | .start = OMAP1710_ETHR_START, /* Physical */ | 214 | .start = OMAP1710_ETHR_START, /* Physical */ |
@@ -218,6 +225,9 @@ static struct resource smc91x_resources[] = { | |||
218 | static struct platform_device smc91x_device = { | 225 | static struct platform_device smc91x_device = { |
219 | .name = "smc91x", | 226 | .name = "smc91x", |
220 | .id = 0, | 227 | .id = 0, |
228 | .dev = { | ||
229 | .platform_data = &smc91x_info, | ||
230 | }, | ||
221 | .num_resources = ARRAY_SIZE(smc91x_resources), | 231 | .num_resources = ARRAY_SIZE(smc91x_resources), |
222 | .resource = smc91x_resources, | 232 | .resource = smc91x_resources, |
223 | }; | 233 | }; |