|
@@ -25,6 +25,8 @@
|
|
|
|
|
|
#include <mach/balloon3.h>
|
|
#include <mach/balloon3.h>
|
|
|
|
|
|
|
|
+#include <asm/mach-types.h>
|
|
|
|
+
|
|
#include "soc_common.h"
|
|
#include "soc_common.h"
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -127,6 +129,9 @@ static int __init balloon3_pcmcia_init(void)
|
|
{
|
|
{
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ if (!machine_is_balloon3())
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
balloon3_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
|
balloon3_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
|
if (!balloon3_pcmcia_device)
|
|
if (!balloon3_pcmcia_device)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|