diff options
author | Joe Perches <joe@perches.com> | 2010-11-22 14:38:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-22 14:38:08 -0500 |
commit | f2ba70a22c31a179226fa0517729104497a7853f (patch) | |
tree | 3695ff637d2e69679ea746c13db266c0c930d677 | |
parent | ba5787323d38084b30261e84510d4a173fcb493a (diff) |
drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/ide/pmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c index ebcf8e470a97..1db7c4368dbf 100644 --- a/drivers/ide/pmac.c +++ b/drivers/ide/pmac.c | |||
@@ -1334,7 +1334,7 @@ out_free_pmif: | |||
1334 | static int | 1334 | static int |
1335 | pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg) | 1335 | pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg) |
1336 | { | 1336 | { |
1337 | pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev); | 1337 | pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev); |
1338 | int rc = 0; | 1338 | int rc = 0; |
1339 | 1339 | ||
1340 | if (mesg.event != pdev->dev.power.power_state.event | 1340 | if (mesg.event != pdev->dev.power.power_state.event |
@@ -1350,7 +1350,7 @@ pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg) | |||
1350 | static int | 1350 | static int |
1351 | pmac_ide_pci_resume(struct pci_dev *pdev) | 1351 | pmac_ide_pci_resume(struct pci_dev *pdev) |
1352 | { | 1352 | { |
1353 | pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev); | 1353 | pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev); |
1354 | int rc = 0; | 1354 | int rc = 0; |
1355 | 1355 | ||
1356 | if (pdev->dev.power.power_state.event != PM_EVENT_ON) { | 1356 | if (pdev->dev.power.power_state.event != PM_EVENT_ON) { |