aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/lpd270.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-04-24 10:13:36 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-06-02 08:49:14 -0400
commit720046de27ec2a96d4497dbca8ee98657efa059c (patch)
tree24d8fc344e16970be7cc4817a09f40c3bbd2ea73 /arch/arm/mach-pxa/lpd270.c
parent1a7e612fa5ea0311232bd5418a40ec7280557789 (diff)
[ARM] pxa: don't register lpd270 cpld_irq sysdev if !lpd270
Don't register the LPD270 cpld_irq system device when we're not running on a LPD270 machine - "cpld_irq" is also registered (separately) by Lubbock and Mainstone. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/lpd270.c')
-rw-r--r--arch/arm/mach-pxa/lpd270.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c
index a20e4b1649d6..6fd7b8b753fc 100644
--- a/arch/arm/mach-pxa/lpd270.c
+++ b/arch/arm/mach-pxa/lpd270.c
@@ -134,9 +134,12 @@ static struct sys_device lpd270_irq_device = {
134 134
135static int __init lpd270_irq_device_init(void) 135static int __init lpd270_irq_device_init(void)
136{ 136{
137 int ret = sysdev_class_register(&lpd270_irq_sysclass); 137 int ret = -ENODEV;
138 if (ret == 0) 138 if (machine_is_logicpd_pxa270()) {
139 ret = sysdev_register(&lpd270_irq_device); 139 ret = sysdev_class_register(&lpd270_irq_sysclass);
140 if (ret == 0)
141 ret = sysdev_register(&lpd270_irq_device);
142 }
140 return ret; 143 return ret;
141} 144}
142 145