diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-06-24 04:14:26 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-12 16:52:41 -0400 |
commit | 38fd6c3846a5657ef6950e3c1582a866cf42888f (patch) | |
tree | 269c2cbe16f3eaeebff202ed37a359a99a1bd00a /arch | |
parent | 3aed74cdea09831db04bd0bdfc2f377f731c1879 (diff) |
[ARM] pxa: make mainstone to use the new smc91x platform data
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-pxa/mainstone.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 14eac2287e3f..851ec2d9b699 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/input.h> | 26 | #include <linux/input.h> |
27 | #include <linux/gpio_keys.h> | 27 | #include <linux/gpio_keys.h> |
28 | #include <linux/pwm_backlight.h> | 28 | #include <linux/pwm_backlight.h> |
29 | #include <linux/smc91x.h> | ||
29 | 30 | ||
30 | #include <asm/types.h> | 31 | #include <asm/types.h> |
31 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
@@ -240,11 +241,19 @@ static struct resource smc91x_resources[] = { | |||
240 | } | 241 | } |
241 | }; | 242 | }; |
242 | 243 | ||
244 | static struct smc91x_platdata mainstone_smc91x_info = { | ||
245 | .flags = SMC91X_USE_8BIT | SMC91X_USE_16BIT | SMC91X_USE_32BIT | | ||
246 | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
247 | }; | ||
248 | |||
243 | static struct platform_device smc91x_device = { | 249 | static struct platform_device smc91x_device = { |
244 | .name = "smc91x", | 250 | .name = "smc91x", |
245 | .id = 0, | 251 | .id = 0, |
246 | .num_resources = ARRAY_SIZE(smc91x_resources), | 252 | .num_resources = ARRAY_SIZE(smc91x_resources), |
247 | .resource = smc91x_resources, | 253 | .resource = smc91x_resources, |
254 | .dev = { | ||
255 | .platform_data = &mainstone_smc91x_info, | ||
256 | }, | ||
248 | }; | 257 | }; |
249 | 258 | ||
250 | static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv) | 259 | static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv) |