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 | |
parent | 7c5926d4e8d0f3d36688df4652b8f9f9ef0d7945 (diff) | |
download | op-kernel-dev-043fbc099af0fc0ec94112c7235b7544147149f4.zip op-kernel-dev-043fbc099af0fc0ec94112c7235b7544147149f4.tar.gz |
[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>
-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 53c4499..e91c0f2 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; |