]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ata/pata_platform.c
pata_platform: set_mode fix
[linux-2.6-omap-h63xx.git] / drivers / ata / pata_platform.c
index 443b1d85c6c48eb4f1626826760905d2ee328be0..ca2999f9f048956a0c31da1e62eb977ad796bd65 100644 (file)
@@ -30,7 +30,8 @@ static int pio_mask = 1;
  * Provide our own set_mode() as we don't want to change anything that has
  * already been configured..
  */
-static void pata_platform_set_mode(struct ata_port *ap)
+static int pata_platform_set_mode(struct ata_port *ap,
+                               struct ata_device **r_failed_dev)
 {
        int i;
 
@@ -44,6 +45,7 @@ static void pata_platform_set_mode(struct ata_port *ap)
                        dev->flags |= ATA_DFLAG_PIO;
                }
        }
+       return 0;
 }
 
 static void pata_platform_host_stop(struct ata_host *host)