diff options
| -rw-r--r-- | arch/arm/mach-pxa/csb701.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/csb701.c b/arch/arm/mach-pxa/csb701.c index 4a2a2952c374..5a221a49ea4d 100644 --- a/arch/arm/mach-pxa/csb701.c +++ b/arch/arm/mach-pxa/csb701.c | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | #include <linux/input.h> | 5 | #include <linux/input.h> |
| 6 | #include <linux/leds.h> | 6 | #include <linux/leds.h> |
| 7 | 7 | ||
| 8 | #include <asm/mach-types.h> | ||
| 9 | |||
| 8 | static struct gpio_keys_button csb701_buttons[] = { | 10 | static struct gpio_keys_button csb701_buttons[] = { |
| 9 | { | 11 | { |
| 10 | .code = 0x7, | 12 | .code = 0x7, |
| @@ -54,6 +56,9 @@ static struct platform_device *devices[] __initdata = { | |||
| 54 | 56 | ||
| 55 | static int __init csb701_init(void) | 57 | static int __init csb701_init(void) |
| 56 | { | 58 | { |
| 59 | if (!machine_is_csb726()) | ||
| 60 | return -ENODEV; | ||
| 61 | |||
| 57 | return platform_add_devices(devices, ARRAY_SIZE(devices)); | 62 | return platform_add_devices(devices, ARRAY_SIZE(devices)); |
| 58 | } | 63 | } |
| 59 | 64 | ||
