Skip to content

Commit

Permalink
libata-add-irq_flags-to-struct-pata_platform_info-fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Oct 12, 2007
1 parent 2eb829e commit b877353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b877353

Please sign in to comment.