Commit 2ca6611b authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

pata_platform: set_mode fix

drivers/ata/pata_platform.c:85: warning: initialization from incompatible pointer type

Cc: Jeff Garzik <jeff@garzik.org>
Cc: Tejun Heo <htejun@gmail.com>
Acked-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 7a0f1c8a
...@@ -30,7 +30,8 @@ static int pio_mask = 1; ...@@ -30,7 +30,8 @@ static int pio_mask = 1;
* Provide our own set_mode() as we don't want to change anything that has * Provide our own set_mode() as we don't want to change anything that has
* already been configured.. * 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; int i;
...@@ -44,6 +45,7 @@ static void pata_platform_set_mode(struct ata_port *ap) ...@@ -44,6 +45,7 @@ static void pata_platform_set_mode(struct ata_port *ap)
dev->flags |= ATA_DFLAG_PIO; dev->flags |= ATA_DFLAG_PIO;
} }
} }
return 0;
} }
static void pata_platform_host_stop(struct ata_host *host) static void pata_platform_host_stop(struct ata_host *host)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment