aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/lubbock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/lubbock.c')
-rw-r--r--arch/arm/mach-pxa/lubbock.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c
index ebb73f133486..1b9290c0ed5e 100644
--- a/arch/arm/mach-pxa/lubbock.c
+++ b/arch/arm/mach-pxa/lubbock.c
@@ -136,9 +136,13 @@ static struct sys_device lubbock_irq_device = {
136 136
137static int __init lubbock_irq_device_init(void) 137static int __init lubbock_irq_device_init(void)
138{ 138{
139 int ret = sysdev_class_register(&lubbock_irq_sysclass); 139 int ret = -ENODEV;
140 if (ret == 0) 140
141 ret = sysdev_register(&lubbock_irq_device); 141 if (machine_is_lubbock()) {
142 ret = sysdev_class_register(&lubbock_irq_sysclass);
143 if (ret == 0)
144 ret = sysdev_register(&lubbock_irq_device);
145 }
142 return ret; 146 return ret;
143} 147}
144 148