//====================================================================== int init_module(void) { int rc; MOD_INC_USE_COUNT; // hold till done rc = ip2_loadmain(io,irq,(unsigned char *)fip_firm,sizeof(fip_firm)); // The call to lock and load main, create dep MOD_DEC_USE_COUNT; //done - kerneld now can unload us return rc; }
//====================================================================== int init_module(void) { int rc; MOD_INC_USE_COUNT; // hold till done if( poll_only ) { /* Hard lock the interrupts to zero */ irq[0] = irq[1] = irq[2] = irq[3] = 0; } rc = ip2_loadmain(io,irq,(unsigned char *)fip_firm,sizeof(fip_firm)); // The call to lock and load main, create dep MOD_DEC_USE_COUNT; //done - kerneld now can unload us return rc; }
int ip2_init(void) { return ip2_loadmain(io,irq,(unsigned char *)fip_firm,sizeof(fip_firm)); }