cns3xxx: exit from laguna late_initcall if not running on laguna board
authorLuka Perkov <luka@openwrt.org>
Thu, 8 Nov 2012 11:31:56 +0000 (11:31 +0000)
committerLuka Perkov <luka@openwrt.org>
Thu, 8 Nov 2012 11:31:56 +0000 (11:31 +0000)
SVN-Revision: 34120

target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c

index 8b611c55826beea744224b8895755f814020a036..19bc2ededb219af48524365ae3c55ae34a52ecf8 100644 (file)
@@ -781,6 +781,9 @@ static int __init laguna_model_setup(void)
        u32 __iomem *mem;
        u32 reg;
 
+       if (!machine_is_gw2388())
+               return 0;
+
        printk("Running on Gateworks Laguna %s\n", laguna_info.model);
        cns3xxx_gpio_init( 0, 32, CNS3XXX_GPIOA_BASE_VIRT, IRQ_CNS3XXX_GPIOA,
                NR_IRQS_CNS3XXX);