diff options
author | Luka Perkov <luka@openwrt.org> | 2012-11-08 11:31:56 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2012-11-08 11:31:56 +0000 |
commit | 965c1904443b9804395b00a85c8a0fc11779ddd2 (patch) | |
tree | d48424a58fc475487ddb86105c626ffe5f919062 /target/linux/cns3xxx/files/arch | |
parent | 26263535fe8bca85d93c424ce40cb66b92d53f35 (diff) | |
download | mtk-20170518-965c1904443b9804395b00a85c8a0fc11779ddd2.zip mtk-20170518-965c1904443b9804395b00a85c8a0fc11779ddd2.tar.gz mtk-20170518-965c1904443b9804395b00a85c8a0fc11779ddd2.tar.bz2 |
cns3xxx: exit from laguna late_initcall if not running on laguna board
SVN-Revision: 34120
Diffstat (limited to 'target/linux/cns3xxx/files/arch')
-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 8b611c5..19bc2ed 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); |