Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59071
b: refs/heads/master
c: 35142dd
h: refs/heads/master
i:
  59069: 4aa16b5
  59067: 2aad508
  59063: 8ace4cf
  59055: 61d6e82
  59039: 88f643a
  59007: ac4f56a
v: v3
  • Loading branch information
Domen Puncer authored and Jeff Garzik committed Jul 11, 2007
1 parent ee7ae29 commit 13ccb5a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a77720ad0a4049e4bc6355e4febf899966a48222
refs/heads/master: 35142ddbf7d81ff3f1d9521611e734b8d5014df2
18 changes: 16 additions & 2 deletions trunk/drivers/ata/pata_mpc52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,27 @@ mpc52xx_ata_remove(struct of_device *op)
static int
mpc52xx_ata_suspend(struct of_device *op, pm_message_t state)
{
return 0; /* FIXME : What to do here ? */
struct ata_host *host = dev_get_drvdata(&op->dev);

return ata_host_suspend(host, state);
}

static int
mpc52xx_ata_resume(struct of_device *op)
{
return 0; /* FIXME : What to do here ? */
struct ata_host *host = dev_get_drvdata(&op->dev);
struct mpc52xx_ata_priv *priv = host->private_data;
int rv;

rv = mpc52xx_ata_hw_init(priv);
if (rv) {
printk(KERN_ERR DRV_NAME ": Error during HW init\n");
return rv;
}

ata_host_resume(host);

return 0;
}

#endif
Expand Down

0 comments on commit 13ccb5a

Please sign in to comment.