static int airo_cs_init(void) { servinfo_t serv; DEBUG(0, "%s\n", version); CardServices(GetCardServicesInfo, &serv); if (serv.Revision != CS_RELEASE_CODE) { printk(KERN_NOTICE "airo_cs: Card Services release " "does not match!\n"); return -1; } register_pcmcia_driver(&dev_info, &airo_attach, &airo_detach); return 0; }
static int __init aironet_cs_init(void) { servinfo_t serv; /* Always emit the version, before any failure. */ printk(KERN_INFO"%s", awc_version); PC_DEBUG(0, "%s\n", version); CardServices(GetCardServicesInfo, &serv); if (serv.Revision != CS_RELEASE_CODE) { printk(KERN_NOTICE "awc_cs: Card Services release " "does not match!\n"); return -1; } register_pcmcia_driver(&dev_info, &awc_attach, &awc_detach); return 0; }
/*====================================================================*/ static int __init mc2_init(void) { servinfo_t serv; CardServices(GetCardServicesInfo, &serv); if (serv.Revision != CS_RELEASE_CODE) { printk(KERN_NOTICE "wl24_cs: Card Services release does not match!\n" "Compiled with 0x%x, but current is 0x%lx\n", CS_RELEASE_CODE, (long)serv.Revision); /* return -1; */ } wl24n_create_procdir(); #ifdef PCMCIA_DEBUG if (pc_debug > 2) { /* dump the module parameter */ int i; printk(KERN_DEBUG __FILE__ ":module parameters:\n"); printk(KERN_DEBUG __FILE__ ": irq_list: "); i=0; while (i < 4 && irq_list[i] > 0) { printk("%d ",irq_list[i]); i++; } printk("\n"); printk(KERN_DEBUG __FILE__ ": free_ports: %d irq_mask: x%x "\ "trace_mask x%x\n", free_ports, irq_mask, trace_mask); printk(KERN_DEBUG __FILE__ ": dbg_mask x%x msg_to_dbg_mask: x%x " "msg_from_dbg_mask x%x\n", dbg_mask, msg_to_dbg_mask, msg_from_dbg_mask); printk(KERN_DEBUG __FILE__ ": LLCType %d networktype %d networkname %s " "nwn_is_hex %d\n", LLCType, networktype, networkname, nwn_is_hex); printk(KERN_DEBUG __FILE__ ": Channel %d pc_debug %d\n", Channel, pc_debug); } #endif register_pcmcia_driver(&dev_info, &mc2_attach, &mc2_detach); return 0; }