mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 06:26:55 +07:00
d684b21f89
commit 8ac4ce742c
("ide: fix host drivers
depending on ide_generic to probe for interfaces (take 2)") moved probing
to falconide but forgot to take care of Atari specific locking - fix it.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
37 lines
696 B
C
37 lines
696 B
C
/*
|
|
* 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/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/ide.h>
|
|
|
|
static int __init ide_generic_init(void)
|
|
{
|
|
u8 idx[MAX_HWIFS];
|
|
int i;
|
|
|
|
for (i = 0; i < MAX_HWIFS; i++) {
|
|
ide_hwif_t *hwif = &ide_hwifs[i];
|
|
|
|
if (hwif->io_ports[IDE_DATA_OFFSET] && !hwif->present)
|
|
idx[i] = i;
|
|
else
|
|
idx[i] = 0xff;
|
|
}
|
|
|
|
ide_device_add_all(idx, NULL);
|
|
|
|
return 0;
|
|
}
|
|
|
|
module_init(ide_generic_init);
|
|
|
|
MODULE_LICENSE("GPL");
|