| 1 | From ddd30dbf3cfd805b0de99fc581d0fa1cc7236ef9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Bobby Powers <bobbypowers@gmail.com> |
| 3 | Date: Fri, 13 Nov 2009 01:33:05 -0500 |
| 4 | Subject: [PATCH] pxa: define smsc911x structures for pcmcia too |
| 5 | |
| 6 | The gumstix pcmcia support (which the wireless driver uses) needs |
| 7 | to know about the smsc911x platform device even if smsc811x support |
| 8 | is disabled, as they share resources. |
| 9 | |
| 10 | Signed-off-by: Bobby Powers <bobbypowers@gmail.com> |
| 11 | --- |
| 12 | arch/arm/mach-pxa/gumstix-verdex.c | 6 +++++- |
| 13 | 1 files changed, 5 insertions(+), 1 deletions(-) |
| 14 | |
| 15 | --- a/arch/arm/mach-pxa/gumstix-verdex.c |
| 16 | +++ b/arch/arm/mach-pxa/gumstix-verdex.c |
| 17 | @@ -51,7 +51,9 @@ |
| 18 | |
| 19 | #include <linux/delay.h> |
| 20 | |
| 21 | -#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
| 22 | + |
| 23 | +#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) \ |
| 24 | + || defined(CONFIG_PCMCIA_PXA2XX) || defined(CONFIG_PCMCIA_PXA2XX_MODULE) |
| 25 | |
| 26 | #include <linux/smsc911x.h> |
| 27 | |
| 28 | @@ -85,7 +87,9 @@ static struct platform_device verdex_sms |
| 29 | .platform_data = &verdex_smsc911x_config, |
| 30 | }, |
| 31 | }; |
| 32 | +#endif |
| 33 | |
| 34 | +#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
| 35 | static void __init verdex_init_smsc911x(void) |
| 36 | { |
| 37 | |
| 38 | |