int __init parport_init (void) { if (io[0] == PARPORT_DISABLE) return 1; #ifdef CONFIG_SYSCTL parport_default_proc_register (); #endif #ifdef CONFIG_PARPORT_PC parport_pc_init(io, io_hi, irq, dma); #endif #ifdef CONFIG_PARPORT_DRAGONIX parport_dragonix_init(); #endif #ifdef CONFIG_PARPORT_AMIGA parport_amiga_init(); #endif #ifdef CONFIG_PARPORT_MFC3 parport_mfc3_init(); #endif #ifdef CONFIG_PARPORT_ATARI parport_atari_init(); #endif #ifdef CONFIG_PARPORT_ARC parport_arc_init(); #endif #ifdef CONFIG_PARPORT_SUNBPP parport_sunbpp_init(); #endif #ifdef CONFIG_PARPORT_HD64465 parport_hd64465_init(); #endif return 0; }
__initfunc(int parport_init(void)) { if (io[0] == PARPORT_DISABLE) return 1; #ifdef CONFIG_PNP_PARPORT parport_probe_hook = &parport_probe_one; #endif #ifdef CONFIG_PROC_FS parport_proc_init(); #endif #ifdef CONFIG_PARPORT_PC parport_pc_init(io, irq, dma); #endif #ifdef CONFIG_PARPORT_AX parport_ax_init(); #endif return 0; }