ata: libahci: Don't read AHCI version twice in the save-config method
[linux-2.6-microblaze.git] / drivers / ata / libahci.c
index 000a707..1ffaa5f 100644 (file)
@@ -564,7 +564,7 @@ void ahci_save_initial_config(struct device *dev, struct ahci_host_priv *hpriv)
        /* record values to use during operation */
        hpriv->cap = cap;
        hpriv->cap2 = cap2;
-       hpriv->version = readl(mmio + HOST_VERSION);
+       hpriv->version = vers;
        hpriv->port_map = port_map;
 
        if (!hpriv->start_engine)