/*
- * linux/drivers/ide/arm/rapide.c
- *
* Copyright (c) 1996-2002 Russell King.
*/
hwif->mmio = 1;
default_hwif_mmiops(hwif);
- hwif->hwif_data = base;
-
idx[0] = hwif->index;
ide_device_add(idx);
ecard_set_drvdata(ec, NULL);
- /* there must be a better way */
- ide_unregister(hwif - ide_hwifs);
+ ide_unregister(hwif->index);
+
ecard_release_resources(ec);
}