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-omap2/gpmc-smc91x.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-omap2/gpmc-smc91x.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc-smc91x.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/gpmc-smc91x.c b/arch/arm/mach-omap2/gpmc-smc91x.c index 6083e21b3be6..877c6f5807b7 100644 --- a/arch/arm/mach-omap2/gpmc-smc91x.c +++ b/arch/arm/mach-omap2/gpmc-smc91x.c | |||
@@ -33,17 +33,19 @@ static struct resource gpmc_smc91x_resources[] = { | |||
33 | }; | 33 | }; |
34 | 34 | ||
35 | static struct smc91x_platdata gpmc_smc91x_info = { | 35 | static struct smc91x_platdata gpmc_smc91x_info = { |
36 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_IO_SHIFT_0, | 36 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_IO_SHIFT_0, |
37 | .leda = RPC_LED_100_10, | ||
38 | .ledb = RPC_LED_TX_RX, | ||
37 | }; | 39 | }; |
38 | 40 | ||
39 | static struct platform_device gpmc_smc91x_device = { | 41 | static struct platform_device gpmc_smc91x_device = { |
40 | .name = "smc91x", | 42 | .name = "smc91x", |
41 | .id = -1, | 43 | .id = -1, |
42 | .num_resources = ARRAY_SIZE(gpmc_smc91x_resources), | ||
43 | .resource = gpmc_smc91x_resources, | ||
44 | .dev = { | 44 | .dev = { |
45 | .platform_data = &gpmc_smc91x_info, | 45 | .platform_data = &gpmc_smc91x_info, |
46 | }, | 46 | }, |
47 | .num_resources = ARRAY_SIZE(gpmc_smc91x_resources), | ||
48 | .resource = gpmc_smc91x_resources, | ||
47 | }; | 49 | }; |
48 | 50 | ||
49 | /* | 51 | /* |