projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee72ca
)
sata_mv: release clock on ata_host_activate() failure
author
Sergei Shtylyov
<sshtylyov@ru.mvista.com>
Fri, 7 Oct 2011 15:22:33 +0000
(19:22 +0400)
committer
Jeff Garzik
<jgarzik@redhat.com>
Sat, 8 Oct 2011 03:46:12 +0000
(23:46 -0400)
mv_platfrom_probe() forgets to call clk_disable() and clk_put() iff
ata_host_activate() fails...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c
patch
|
blob
|
history
diff --git
a/drivers/ata/sata_mv.c
b/drivers/ata/sata_mv.c
index 4b6b2090784b15e952a9a7a6bf910b39d9d73581..647cb3abf4d6feb1229ed2b157dd9ef12c953c82 100644
(file)
--- a/
drivers/ata/sata_mv.c
+++ b/
drivers/ata/sata_mv.c
@@
-4087,8
+4087,11
@@
static int mv_platform_probe(struct platform_device *pdev)
dev_info(&pdev->dev, "slots %u ports %d\n",
(unsigned)MV_MAX_Q_DEPTH, host->n_ports);
- return ata_host_activate(host, platform_get_irq(pdev, 0), mv_interrupt,
- IRQF_SHARED, &mv6_sht);
+ rc = ata_host_activate(host, platform_get_irq(pdev, 0), mv_interrupt,
+ IRQF_SHARED, &mv6_sht);
+ if (!rc)
+ return 0;
+
err:
#if defined(CONFIG_HAVE_CLK)
if (!IS_ERR(hpriv->clk)) {