Messages in this thread Patch in this message | | | From | Andrey Borzenkov <> | Date | Sun, 22 Feb 2004 12:36:44 +0300 | Subject | [PATCH][2.6.3-mm2] /proc/ide/HWIF for modular IDE |
| |
On Wed, Feb 04, 2004 at 10:55:33PM +0100, Bartlomiej Zolnierkiewicz wrote: > > > > ide_setup_pci_device()+ide_setup_pci_devices() are correct places > > > to add registering of /proc/ide/<chipset> and /proc/ide/<hwif>. > > > > this patch does it for <hwif> > >
2.6.3-mm2 now makes /proc/ide/CHIPSET appear but /proc/ide/HWIF are still missing.
Updated patch attached.
-andrey --- 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); | |