Skip to content

Commit

Permalink
drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 22, 2010
1 parent ba57873 commit f2ba70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/pmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ pmac_ide_pci_attach(struct pci_dev *pdev, const struct pci_device_id *id)
static int
pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
{
pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev);
pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev);
int rc = 0;

if (mesg.event != pdev->dev.power.power_state.event
Expand All @@ -1350,7 +1350,7 @@ pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
static int
pmac_ide_pci_resume(struct pci_dev *pdev)
{
pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev);
pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev);
int rc = 0;

if (pdev->dev.power.power_state.event != PM_EVENT_ON) {
Expand Down

0 comments on commit f2ba70a

Please sign in to comment.