From 1a18927dcfb31a253adccd7f852c2eee2ef28aee Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Thu, 8 Nov 2012 11:31:56 +0000 Subject: cns3xxx: exit from laguna late_initcall if not running on laguna board git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34120 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/cns3xxx') diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c index 8b611c5582..19bc2ededb 100644 --- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c +++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c @@ -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); -- cgit v1.2.3