From: Andrew Morton Date: Fri, 10 Aug 2007 20:59:33 +0000 (-0700) Subject: libata-add-irq_flags-to-struct-pata_platform_info-fix X-Git-Tag: v2.6.24-rc1~1391^2~93 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b8773531cc54c1ed10c8ec301353ee6b53b601a5;p=linux-2.6-omap-h63xx.git libata-add-irq_flags-to-struct-pata_platform_info-fix Remove unneeded, undesirable cast of void*. Cc: Jeff Garzik Cc: Sonic Zhang Cc: Tejun Heo Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index 37e5158391d..9dc628931e9 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c @@ -207,7 +207,7 @@ static int __devinit pata_platform_probe(struct platform_device *pdev) ap->ioaddr.altstatus_addr = ap->ioaddr.ctl_addr; - pp_info = (struct pata_platform_info *)(pdev->dev.platform_data); + pp_info = pdev->dev.platform_data; pata_platform_setup_port(&ap->ioaddr, pp_info); /* activate */