diff options
-rw-r--r-- | arch/arm/mach-pxa/corgi_pm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c index 53c4499ebdbc..e91c0f26c412 100644 --- a/arch/arm/mach-pxa/corgi_pm.c +++ b/arch/arm/mach-pxa/corgi_pm.c | |||
@@ -229,6 +229,10 @@ static int __devinit corgipm_init(void) | |||
229 | { | 229 | { |
230 | int ret; | 230 | int ret; |
231 | 231 | ||
232 | if (!machine_is_corgi() && !machine_is_shepherd() | ||
233 | && !machine_is_husky()) | ||
234 | return -ENODEV; | ||
235 | |||
232 | corgipm_device = platform_device_alloc("sharpsl-pm", -1); | 236 | corgipm_device = platform_device_alloc("sharpsl-pm", -1); |
233 | if (!corgipm_device) | 237 | if (!corgipm_device) |
234 | return -ENOMEM; | 238 | return -ENOMEM; |