Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73042
b: refs/heads/master
c: 79b3edc
h: refs/heads/master
v: v3
  • Loading branch information
Li Yang authored and Jeff Garzik committed Nov 3, 2007
1 parent ca68e8c commit 5c7fc1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 27c96eaabaf6e3cf386a69640d134b34ce51ff13
refs/heads/master: 79b3edc97e31d7016c957af653cd3d459917dea0
4 changes: 3 additions & 1 deletion trunk/drivers/ata/sata_fsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ struct sata_fsl_host_priv {
void __iomem *hcr_base;
void __iomem *ssr_base;
void __iomem *csr_base;
int irq;
};

static inline unsigned int sata_fsl_tag(unsigned int tag,
Expand Down Expand Up @@ -1399,6 +1400,7 @@ static int sata_fsl_probe(struct of_device *ofdev,
dev_printk(KERN_ERR, &ofdev->dev, "invalid irq from platform\n");
goto error_exit_with_cleanup;
}
host_priv->irq = irq;

/* allocate host structure */
host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_FSL_MAX_PORTS);
Expand Down Expand Up @@ -1445,7 +1447,7 @@ static int sata_fsl_remove(struct of_device *ofdev)

dev_set_drvdata(&ofdev->dev, NULL);

irq_dispose_mapping(host->irq);
irq_dispose_mapping(host_priv->irq);
iounmap(host_priv->hcr_base);
kfree(host_priv);

Expand Down

0 comments on commit 5c7fc1c

Please sign in to comment.