Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344428
b: refs/heads/master
c: 37e1b02
h: refs/heads/master
v: v3
  • Loading branch information
Brian Norris authored and Jeff Garzik committed Dec 3, 2012
1 parent 8de8615 commit 427e7c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 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: 58d0ff2f05d6915c455b5fe7c404e299fe34993b
refs/heads/master: 37e1b022bf1c54daf6849deffb65322299493702
17 changes: 3 additions & 14 deletions trunk/drivers/ata/pata_mpc52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,18 +663,6 @@ mpc52xx_ata_init_one(struct device *dev, struct mpc52xx_ata_priv *priv,
&mpc52xx_ata_sht);
}

static struct mpc52xx_ata_priv *
mpc52xx_ata_remove_one(struct device *dev)
{
struct ata_host *host = dev_get_drvdata(dev);
struct mpc52xx_ata_priv *priv = host->private_data;

ata_host_detach(host);

return priv;
}


/* ======================================================================== */
/* OF Platform driver */
/* ======================================================================== */
Expand Down Expand Up @@ -815,11 +803,12 @@ mpc52xx_ata_probe(struct platform_device *op)
static int
mpc52xx_ata_remove(struct platform_device *op)
{
struct mpc52xx_ata_priv *priv;
struct ata_host *host = platform_get_drvdata(op);
struct mpc52xx_ata_priv *priv = host->private_data;
int task_irq;

/* Deregister the ATA interface */
priv = mpc52xx_ata_remove_one(&op->dev);
ata_platform_remove_one(op);

/* Clean up DMA */
task_irq = bcom_get_task_irq(priv->dmatsk);
Expand Down

0 comments on commit 427e7c5

Please sign in to comment.