aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/mainstone.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/mainstone.c')
-rw-r--r--arch/arm/mach-pxa/mainstone.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c
index a5db00c38f1f..237459bf67c6 100644
--- a/arch/arm/mach-pxa/mainstone.c
+++ b/arch/arm/mach-pxa/mainstone.c
@@ -131,9 +131,13 @@ static struct sys_device mainstone_irq_device = {
131 131
132static int __init mainstone_irq_device_init(void) 132static int __init mainstone_irq_device_init(void)
133{ 133{
134 int ret = sysdev_class_register(&mainstone_irq_sysclass); 134 int ret = -ENODEV;
135 if (ret == 0) 135
136 ret = sysdev_register(&mainstone_irq_device); 136 if (machine_is_mainstone()) {
137 ret = sysdev_class_register(&mainstone_irq_sysclass);
138 if (ret == 0)
139 ret = sysdev_register(&mainstone_irq_device);
140 }
137 return ret; 141 return ret;
138} 142}
139 143