--- linux-2.6.2-mm1/drivers/ide/ide-proc.c.modular 2004-02-04 23:30:42.000000000 +0300 +++ linux-2.6.2-mm1/drivers/ide/ide-proc.c 2004-02-05 23:02:54.000000000 +0300 @@ -801,6 +801,13 @@ void ide_pci_register_host_proc (ide_pci tmp->next = p; } else ide_pci_host_proc_list = p; + + if (proc_ide_root) { + p->parent = proc_ide_root; + create_proc_info_entry(p->name, 0, p->parent, p->get_info); + p->set = 2; + } + } EXPORT_SYMBOL(ide_pci_register_host_proc); --- linux-2.6.2-mm1/drivers/ide/setup-pci.c.modular 2004-02-05 22:59:48.000000000 +0300 +++ linux-2.6.2-mm1/drivers/ide/setup-pci.c 2004-02-05 22:59:54.000000000 +0300 @@ -746,6 +746,10 @@ void ide_setup_pci_device (struct pci_de probe_hwif_init(&ide_hwifs[index_list.b.low]); if ((index_list.b.high & 0xf0) != 0xf0) probe_hwif_init(&ide_hwifs[index_list.b.high]); + +#ifdef CONFIG_PROC_FS + create_proc_ide_interfaces(); +#endif } EXPORT_SYMBOL_GPL(ide_setup_pci_device); @@ -763,6 +767,10 @@ void ide_setup_pci_devices (struct pci_d probe_hwif_init(&ide_hwifs[index_list2.b.low]); if ((index_list2.b.high & 0xf0) != 0xf0) probe_hwif_init(&ide_hwifs[index_list2.b.high]); + +#ifdef CONFIG_PROC_FS + create_proc_ide_interfaces(); +#endif } EXPORT_SYMBOL_GPL(ide_setup_pci_devices);