aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:39 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:39 -0400
commit256c5f8eef7b9a8c8a85c15c58cda9df455f947e (patch)
treececc145a78f140de8e623b1563c4d758290e2ae8 /drivers/ide/ide.c
parent9ad540937554a3779c5fe7af13aa390b1d2aeb3e (diff)
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>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 2b8453510e09..32d8ee281d56 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -121,7 +121,6 @@ void ide_init_port_data(ide_hwif_t *hwif, unsigned int index)
121 121
122 ide_port_init_devices_data(hwif); 122 ide_port_init_devices_data(hwif);
123} 123}
124EXPORT_SYMBOL_GPL(ide_init_port_data);
125 124
126static void ide_port_init_devices_data(ide_hwif_t *hwif) 125static void ide_port_init_devices_data(ide_hwif_t *hwif)
127{ 126{
@@ -150,18 +149,6 @@ static void ide_port_init_devices_data(ide_hwif_t *hwif)
150 } 149 }
151} 150}
152 151
153static void __init init_ide_data (void)
154{
155 unsigned int index;
156
157 /* Initialise all interface structures */
158 for (index = 0; index < MAX_HWIFS; ++index) {
159 ide_hwif_t *hwif = &ide_hwifs[index];
160
161 ide_init_port_data(hwif, index);
162 }
163}
164
165void ide_remove_port_from_hwgroup(ide_hwif_t *hwif) 152void ide_remove_port_from_hwgroup(ide_hwif_t *hwif)
166{ 153{
167 ide_hwgroup_t *hwgroup = hwif->hwgroup; 154 ide_hwgroup_t *hwgroup = hwif->hwgroup;
@@ -1021,8 +1008,6 @@ static int __init ide_init(void)
1021 goto out_port_class; 1008 goto out_port_class;
1022 } 1009 }
1023 1010
1024 init_ide_data();
1025
1026 proc_ide_create(); 1011 proc_ide_create();
1027 1012
1028 return 0; 1013 return 0;