From d3ccceedf41f2db0a51f74590d90182c49c9aff1 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Sat, 31 May 2008 16:17:32 +0100 Subject: [PATCH] --- yaml --- r: 100925 b: refs/heads/master c: 5806d8abf6b152f23d057c2e6b9199892883a8df h: refs/heads/master i: 100923: efdb68489e0e407a344b2af15fad40c417e619b5 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/spitz_pm.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ba6d95267918..0b7116d34e29 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 043fbc099af0fc0ec94112c7235b7544147149f4 +refs/heads/master: 5806d8abf6b152f23d057c2e6b9199892883a8df diff --git a/trunk/arch/arm/mach-pxa/spitz_pm.c b/trunk/arch/arm/mach-pxa/spitz_pm.c index 48396f4eb265..360354084ae4 100644 --- a/trunk/arch/arm/mach-pxa/spitz_pm.c +++ b/trunk/arch/arm/mach-pxa/spitz_pm.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "sharpsl.h" @@ -231,6 +232,10 @@ static int __devinit spitzpm_init(void) { int ret; + if (!machine_is_spitz() && !machine_is_akita() + && !machine_is_borzoi()) + return -ENODEV; + spitzpm_device = platform_device_alloc("sharpsl-pm", -1); if (!spitzpm_device) return -ENOMEM;