linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / ide / ide-pnp.c
index c3f0640..df7d150 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/ide.h>
 
 /* Add your devices here :)) */
-struct pnp_device_id idepnp_devices[] = {
+static struct pnp_device_id idepnp_devices[] = {
        /* Generic ESDI/IDE/ATA compatible hard disk controller */
        {.id = "PNP0600", .driver_data = 0},
        {.id = ""}
@@ -57,7 +57,7 @@ static void idepnp_remove(struct pnp_dev * dev)
 {
        ide_hwif_t *hwif = pnp_get_drvdata(dev);
        if (hwif) {
-               ide_unregister_hwif(hwif);
+               ide_unregister(hwif->index);
        } else
                printk(KERN_ERR "idepnp: Unable to remove device, please report.\n");
 }