]> err.no Git - linux-2.6/commitdiff
libata-add-irq_flags-to-struct-pata_platform_info-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Aug 2007 20:59:33 +0000 (13:59 -0700)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:33 +0000 (14:55 -0400)
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>
drivers/ata/pata_platform.c

index 37e5158391da03258be3c22b8e80bdeac2fa7177..9dc628931e99cda7fb23d98c05e4da14c7eeeaf4 100644 (file)
@@ -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 */