Merge branch 'x86-olpc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / arm / mach-omap1 / leds.c
index 277f356..22eb11d 100644 (file)
@@ -17,6 +17,9 @@
 static int __init
 omap_leds_init(void)
 {
+       if (!cpu_class_is_omap1())
+               return -ENODEV;
+
        if (machine_is_omap_innovator())
                leds_event = innovator_leds_event;