int __init irda_device_init( void) { dongles = hashbin_new(HB_GLOBAL); if (dongles == NULL) { printk(KERN_WARNING "IrDA: Can't allocate dongles hashbin!\n"); return -ENOMEM; } tasks = hashbin_new(HB_GLOBAL); if (tasks == NULL) { printk(KERN_WARNING "IrDA: Can't allocate tasks hashbin!\n"); return -ENOMEM; } /* * Call the init function of the device drivers that has not been * compiled as a module */ #ifdef CONFIG_IRTTY_SIR irtty_init(); #endif #ifdef CONFIG_WINBOND_FIR w83977af_init(); #endif #ifdef CONFIG_SA1100_FIR sa1100_irda_init(); #endif #ifdef CONFIG_NSC_FIR nsc_ircc_init(); #endif #ifdef CONFIG_TOSHIBA_FIR toshoboe_init(); #endif #ifdef CONFIG_SMC_IRCC_FIR ircc_init(); #endif #ifdef CONFIG_ESI_DONGLE esi_init(); #endif #ifdef CONFIG_TEKRAM_DONGLE tekram_init(); #endif #ifdef CONFIG_ACTISYS_DONGLE actisys_init(); #endif #ifdef CONFIG_GIRBIL_DONGLE girbil_init(); #endif #ifdef CONFIG_LITELINK_DONGLE litelink_init(); #endif #ifdef CONFIG_OLD_BELKIN old_belkin_init(); #endif #ifdef CONFIG_EP7211_IR ep7211_ir_init(); #endif return 0; }
int __init irda_device_init( void) { dongles = hashbin_new(HB_GLOBAL); if (dongles == NULL) { printk(KERN_WARNING "IrDA: Can't allocate dongles hashbin!\n"); return -ENOMEM; } tasks = hashbin_new(HB_GLOBAL); if (tasks == NULL) { printk(KERN_WARNING "IrDA: Can't allocate tasks hashbin!\n"); return -ENOMEM; } /* * Call the init function of the device drivers that has not been * compiled as a module * Note : non-modular IrDA is not supported in 2.4.X, so don't * waste too much time fixing this code. If you require it, please * upgrade to the IrDA stack in 2.5.X. Jean II */ #ifdef CONFIG_IRTTY_SIR irtty_init(); #endif #ifdef CONFIG_WINBOND_FIR w83977af_init(); #endif #ifdef CONFIG_SA1100_FIR sa1100_irda_init(); #endif #ifdef CONFIG_NSC_FIR nsc_ircc_init(); #endif #ifdef CONFIG_TOSHIBA_OLD toshoboe_init(); #endif #ifdef CONFIG_SMC_IRCC_FIR ircc_init(); #endif #ifdef CONFIG_ESI_DONGLE esi_init(); #endif #ifdef CONFIG_TEKRAM_DONGLE tekram_init(); #endif #ifdef CONFIG_ACTISYS_DONGLE actisys_init(); #endif #ifdef CONFIG_GIRBIL_DONGLE girbil_init(); #endif #ifdef CONFIG_LITELINK_DONGLE litelink_init(); #endif #ifdef CONFIG_OLD_BELKIN old_belkin_init(); #endif #ifdef CONFIG_EP7211_IR ep7211_ir_init(); #endif #ifdef CONFIG_EP93XX_SIR ep93xx_sir_init(); #endif #ifdef CONFIG_EP93XX_IRDA ep93xx_irda_init(); #endif #ifdef CONFIG_MCP2120_DONGLE mcp2120_init(); #endif return 0; }