1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 21:00:37 +02:00

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
This commit is contained in:
luka 2012-11-08 11:31:56 +00:00
parent 2b64cf1419
commit a8e4ddd6db

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