diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:05 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:05 -0500 |
commit | 151575e4644f917d3a9f83c777ac3543284954f8 (patch) | |
tree | 766f73e934b270972b5875cc36cbc98e2e3b7469 /include/linux/ide.h | |
parent | 71518342bfdfbe508ee325ab5e20984ba2da7de2 (diff) |
ide: remove ideprobe_init()
* Rename ide_device_add() to ide_device_add_all() and make it accept
'u8 idx[MAX_HWIFS]' instead of 'u8 idx[4]' as an argument.
* Add ide_device_add() wrapper for ide_device_add_all().
* Convert ide_generic_init() to use ide_device_add_all().
* Remove no longer needed ideprobe_init().
There should be no functionality changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index dd50a5c5ec10..d7c0f9a8bd9e 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1011,8 +1011,6 @@ extern void do_ide_request(struct request_queue *); | |||
1011 | 1011 | ||
1012 | void ide_init_disk(struct gendisk *, ide_drive_t *); | 1012 | void ide_init_disk(struct gendisk *, ide_drive_t *); |
1013 | 1013 | ||
1014 | extern int ideprobe_init(void); | ||
1015 | |||
1016 | #ifdef CONFIG_IDEPCI_PCIBUS_ORDER | 1014 | #ifdef CONFIG_IDEPCI_PCIBUS_ORDER |
1017 | extern void ide_scan_pcibus(int scan_direction) __init; | 1015 | extern void ide_scan_pcibus(int scan_direction) __init; |
1018 | extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *owner, const char *mod_name); | 1016 | extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *owner, const char *mod_name); |
@@ -1203,6 +1201,7 @@ void ide_unregister_region(struct gendisk *); | |||
1203 | 1201 | ||
1204 | void ide_undecoded_slave(ide_drive_t *); | 1202 | void ide_undecoded_slave(ide_drive_t *); |
1205 | 1203 | ||
1204 | int ide_device_add_all(u8 idx[MAX_HWIFS]); | ||
1206 | int ide_device_add(u8 idx[4]); | 1205 | int ide_device_add(u8 idx[4]); |
1207 | 1206 | ||
1208 | static inline void *ide_get_hwifdata (ide_hwif_t * hwif) | 1207 | static inline void *ide_get_hwifdata (ide_hwif_t * hwif) |