Skip to content

Commit

Permalink
pata_platform: set_mode fix
Browse files Browse the repository at this point in the history
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: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Jan 30, 2007
1 parent 7a0f1c8 commit 2ca6611
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/ata/pata_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit 2ca6611

Please sign in to comment.