diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:55:58 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:55:58 -0400 |
commit | 18de10170df31d34b342612f1c896a16a52f0a5c (patch) | |
tree | 70b101260d2517ea9ec67ddbca0f7224054eef4c /drivers/ide/ide.c | |
parent | af1cbba37343c827e116638b097b94f5e6c38963 (diff) |
ide: allocate ide_hwif_t instances dynamically
* Allocate ide_hwif_t instances dynamically and remove ide_hwifs[].
This cuts almost ~14kB from ide-probe.o (x86-32, MAX_HWIFS == 10):
text data bss dec hex filename
9140 40 14084 23264 5ae0 drivers/ide/ide-probe.o.before
9169 40 44 9253 2425 drivers/ide/ide-probe.o.after
* Remove no longer needed ide_init_port_data() call from ide_unregister().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 60c5db1c59e5..914942a766db 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -233,11 +233,6 @@ void ide_unregister(ide_hwif_t *hwif) | |||
233 | if (hwif->dma_base) | 233 | if (hwif->dma_base) |
234 | ide_release_dma_engine(hwif); | 234 | ide_release_dma_engine(hwif); |
235 | 235 | ||
236 | spin_lock_irq(&ide_lock); | ||
237 | /* restore hwif data to pristine status */ | ||
238 | ide_init_port_data(hwif, hwif->index); | ||
239 | spin_unlock_irq(&ide_lock); | ||
240 | |||
241 | mutex_unlock(&ide_cfg_mtx); | 236 | mutex_unlock(&ide_cfg_mtx); |
242 | } | 237 | } |
243 | 238 | ||