From b9711e87a1734588bf7d955b4400b71428185976 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Wed, 1 Apr 2009 03:40:05 +0400 Subject: [PATCH] --- yaml --- r: 142822 b: refs/heads/master c: 675b5d869fe8f6f9cdb3c6758228f211fb1773e6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/csb701.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ac0d3e6acd58..5a29c6f64f25 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8a28b10e915fff4a4e8be4f152a8e8695d0cb044 +refs/heads/master: 675b5d869fe8f6f9cdb3c6758228f211fb1773e6 diff --git a/trunk/arch/arm/mach-pxa/csb701.c b/trunk/arch/arm/mach-pxa/csb701.c index 4a2a2952c374..5a221a49ea4d 100644 --- a/trunk/arch/arm/mach-pxa/csb701.c +++ b/trunk/arch/arm/mach-pxa/csb701.c @@ -5,6 +5,8 @@ #include #include +#include + static struct gpio_keys_button csb701_buttons[] = { { .code = 0x7, @@ -54,6 +56,9 @@ static struct platform_device *devices[] __initdata = { static int __init csb701_init(void) { + if (!machine_is_csb726()) + return -ENODEV; + return platform_add_devices(devices, ARRAY_SIZE(devices)); }