diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-07-24 04:48:31 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-16 21:32:00 -0400 |
commit | 61f09b5a09fb3962bbd3990a9a5a8470197955bb (patch) | |
tree | 04ce9771f1a31e45f43210614939c4110d9466e0 /arch/blackfin/mach-bf538/boards/ezkit.c | |
parent | 2fff7f8800e3567adf74e29b91ad192761d8fb3c (diff) |
Blackfin: convert boards to use platform data with smc91x
Latest smc91x driver allows you to specify settings in board resources
rather than needing CONFIG_BLACKFIN in the drivers/net/smc91x.h header.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf538/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf538/boards/ezkit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c index 57695b4c3c09..42297fad46b9 100644 --- a/arch/blackfin/mach-bf538/boards/ezkit.c +++ b/arch/blackfin/mach-bf538/boards/ezkit.c | |||
@@ -177,6 +177,14 @@ static struct platform_device bfin_sir2_device = { | |||
177 | * Driver needs to know address, irq and flag pin. | 177 | * Driver needs to know address, irq and flag pin. |
178 | */ | 178 | */ |
179 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 179 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
180 | #include <linux/smc91x.h> | ||
181 | |||
182 | static struct smc91x_platdata smc91x_info = { | ||
183 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
184 | .leda = RPC_LED_100_10, | ||
185 | .ledb = RPC_LED_TX_RX, | ||
186 | }; | ||
187 | |||
180 | static struct resource smc91x_resources[] = { | 188 | static struct resource smc91x_resources[] = { |
181 | { | 189 | { |
182 | .name = "smc91x-regs", | 190 | .name = "smc91x-regs", |
@@ -194,6 +202,9 @@ static struct platform_device smc91x_device = { | |||
194 | .id = 0, | 202 | .id = 0, |
195 | .num_resources = ARRAY_SIZE(smc91x_resources), | 203 | .num_resources = ARRAY_SIZE(smc91x_resources), |
196 | .resource = smc91x_resources, | 204 | .resource = smc91x_resources, |
205 | .dev = { | ||
206 | .platform_data = &smc91x_info, | ||
207 | }, | ||
197 | }; | 208 | }; |
198 | #endif | 209 | #endif |
199 | 210 | ||