diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-05-31 16:16:54 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-06-02 19:33:33 +0100 |
commit | 043fbc099af0fc0ec94112c7235b7544147149f4 (patch) | |
tree | 05f09bebad79821393ba0c5a62a49e614c5f4ab4 /arch/arm/mach-pxa/corgi_pm.c | |
parent | 7c5926d4e8d0f3d36688df4652b8f9f9ef0d7945 (diff) | |
download | linux-043fbc099af0fc0ec94112c7235b7544147149f4.tar.bz2 |
[ARM] 5072/1: corgi_pm: don't register devices on non-corgi machines
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/corgi_pm.c')
-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) { int ret; + if (!machine_is_corgi() && !machine_is_shepherd() + && !machine_is_husky()) + return -ENODEV; + corgipm_device = platform_device_alloc("sharpsl-pm", -1); if (!corgipm_device) return -ENOMEM; |