cns3xxx: exit from laguna late_initcall if not running on laguna board

SVN-Revision: 34120
lede-17.01
Luka Perkov 2012-11-08 11:31:56 +00:00
parent 26263535fe
commit 965c190444
1 changed files with 3 additions and 0 deletions

View 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);