/* * This is gets invoked once during initialization, to set *everything* up */ static int __init ide_init(void) { int ret; printk(KERN_INFO "Uniform Multi-Platform E-IDE driver\n"); ret = bus_register(&ide_bus_type); if (ret < 0) { printk(KERN_WARNING "IDE: bus_register error: %d\n", ret); return ret; } ide_port_class = class_create(THIS_MODULE, "ide_port"); if (IS_ERR(ide_port_class)) { ret = PTR_ERR(ide_port_class); goto out_port_class; } proc_ide_create(); return 0; out_port_class: bus_unregister(&ide_bus_type); return ret; }
/* * This is gets invoked once during initialization, to set *everything* up */ static int __init ide_init(void) { int ret; printk(KERN_INFO "Uniform Multi-Platform E-IDE driver " REVISION "\n"); system_bus_speed = ide_system_bus_speed(); ret = bus_register(&ide_bus_type); if (ret < 0) { printk(KERN_WARNING "IDE: bus_register error: %d\n", ret); return ret; } init_ide_data(); proc_ide_create(); #ifdef CONFIG_BLK_DEV_ALI14XX if (probe_ali14xx) (void)ali14xx_init(); #endif #ifdef CONFIG_BLK_DEV_UMC8672 if (probe_umc8672) (void)umc8672_init(); #endif #ifdef CONFIG_BLK_DEV_DTC2278 if (probe_dtc2278) (void)dtc2278_init(); #endif #ifdef CONFIG_BLK_DEV_HT6560B if (probe_ht6560b) (void)ht6560b_init(); #endif #ifdef CONFIG_BLK_DEV_QD65XX if (probe_qd65xx) (void)qd65xx_init(); #endif /* Probe for special PCI and other "known" interface chipsets. */ probe_for_hwifs(); return 0; }