|
@@ -18,6 +18,7 @@
|
|
|
|
|
|
#include <pcmcia/ss.h>
|
|
#include <pcmcia/ss.h>
|
|
#include <asm/hardware.h>
|
|
#include <asm/hardware.h>
|
|
|
|
+#include <asm/mach-types.h>
|
|
|
|
|
|
#include <asm/arch/pxa-regs.h>
|
|
#include <asm/arch/pxa-regs.h>
|
|
#include <asm/arch/pxa2xx-gpio.h>
|
|
#include <asm/arch/pxa2xx-gpio.h>
|
|
@@ -147,6 +148,9 @@ static int __init cmx270_pcmcia_init(void)
|
|
{
|
|
{
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ if (!machine_is_armcore())
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
cmx270_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
|
cmx270_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
|
|
|
|
|
if (!cmx270_pcmcia_device)
|
|
if (!cmx270_pcmcia_device)
|