diff options
author | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-08 11:31:56 +0000 |
---|---|---|
committer | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-08 11:31:56 +0000 |
commit | a8e4ddd6dbfd561d5c5bbd5632dfd7109169f421 (patch) | |
tree | 204e8db1145e2eaa63a22d6986bdf156514532d7 /target | |
parent | 2b64cf14194188180a70c5a1c72e28c6e500eab9 (diff) |
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
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 8b611c558..19bc2eded 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); |