ide: fix hwif-s initialization
* Add ide_hwifs[] entry initialization to ide_find_port_slot() and remove ide_init_port_data() calls from host drivers. * Unexport ide_init_port_data(). * Remove no longer needed init_ide_data(). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -121,7 +121,6 @@ void ide_init_port_data(ide_hwif_t *hwif, unsigned int index)
|
||||
|
||||
ide_port_init_devices_data(hwif);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ide_init_port_data);
|
||||
|
||||
static void ide_port_init_devices_data(ide_hwif_t *hwif)
|
||||
{
|
||||
@@ -150,18 +149,6 @@ static void ide_port_init_devices_data(ide_hwif_t *hwif)
|
||||
}
|
||||
}
|
||||
|
||||
static void __init init_ide_data (void)
|
||||
{
|
||||
unsigned int index;
|
||||
|
||||
/* Initialise all interface structures */
|
||||
for (index = 0; index < MAX_HWIFS; ++index) {
|
||||
ide_hwif_t *hwif = &ide_hwifs[index];
|
||||
|
||||
ide_init_port_data(hwif, index);
|
||||
}
|
||||
}
|
||||
|
||||
void ide_remove_port_from_hwgroup(ide_hwif_t *hwif)
|
||||
{
|
||||
ide_hwgroup_t *hwgroup = hwif->hwgroup;
|
||||
@@ -1021,8 +1008,6 @@ static int __init ide_init(void)
|
||||
goto out_port_class;
|
||||
}
|
||||
|
||||
init_ide_data();
|
||||
|
||||
proc_ide_create();
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user