summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_platform.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-08-10 22:59:33 +0200
committerJeff Garzik <jeff@garzik.org>2007-10-12 20:55:33 +0200
commitb8773531cc54c1ed10c8ec301353ee6b53b601a5 (patch)
treee9117797f4fda7ba1cc294d1fa53b5c854628348 /drivers/ata/pata_platform.c
parentata_piix: disallow UDMA 133 on ICH5 & ICH7 (diff)
downloadlinux-b8773531cc54c1ed10c8ec301353ee6b53b601a5.tar.xz
linux-b8773531cc54c1ed10c8ec301353ee6b53b601a5.zip
libata-add-irq_flags-to-struct-pata_platform_info-fix
Remove unneeded, undesirable cast of void*. Cc: Jeff Garzik <jeff@garzik.org> Cc: Sonic Zhang <sonic.adi@gmail.com> Cc: Tejun Heo <htejun@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_platform.c')
-rw-r--r--drivers/ata/pata_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index 37e5158391da..9dc628931e99 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 */