| * generic/default IDE host driver |
| * Copyright (C) 2004 Bartlomiej Zolnierkiewicz |
| * This code was split off from ide.c. See it for original copyrights. |
| * May be copied or modified under the terms of the GNU General Public License. |
| #include <linux/kernel.h> |
| #include <linux/module.h> |
| static int __init ide_generic_init(void) |
| if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET]) |
| ide_get_lock(NULL, NULL); /* for atari only */ |
| for (i = 0; i < MAX_HWIFS; i++) { |
| ide_hwif_t *hwif = &ide_hwifs[i]; |
| if (hwif->io_ports[IDE_DATA_OFFSET] && !hwif->present) |
| ide_device_add_all(idx, NULL); |
| if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET]) |
| ide_release_lock(); /* for atari only */ |
| module_init(ide_generic_init); |