From mboxrd@z Thu Jan 1 00:00:00 1970 From: b.zolnierkie@samsung.com (Bartlomiej Zolnierkiewicz) Date: Tue, 15 Apr 2014 13:45:34 +0200 Subject: [PATCH] pata_samsung_cf: fix ata_host_activate() failure handling In-Reply-To: <000801cf4d48$54c45210$fe4cf630$%han@samsung.com> References: <6050762.sdUI3gZZlK@amdc1032> <000801cf4d48$54c45210$fe4cf630$%han@samsung.com> Message-ID: <2600390.JXZXrjzsbS@amdc1032> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, Tejun, could you please also pick this one? Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics On Tuesday, April 01, 2014 10:18:46 AM Jingoo Han wrote: > On Tuesday, April 01, 2014 2:53 AM, Tejun Heo wrote: > > > > Add missing clk_disable() call to ata_host_activate() failure path. > > > > Cc: Ben Dooks > > Cc: Kukjin Kim > > Signed-off-by: Bartlomiej Zolnierkiewicz > > Reviewed-by: Jingoo Han > > Best regards, > Jingoo Han > > > --- > > drivers/ata/pata_samsung_cf.c | 10 +++++++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > Index: b/drivers/ata/pata_samsung_cf.c > > =================================================================== > > --- a/drivers/ata/pata_samsung_cf.c 2014-03-14 16:45:04.344724378 +0100 > > +++ b/drivers/ata/pata_samsung_cf.c 2014-03-31 18:31:58.083631437 +0200 > > @@ -594,9 +594,13 @@ static int __init pata_s3c_probe(struct > > > > platform_set_drvdata(pdev, host); > > > > - return ata_host_activate(host, info->irq, > > - info->irq ? pata_s3c_irq : NULL, > > - 0, &pata_s3c_sht); > > + ret = ata_host_activate(host, info->irq, > > + info->irq ? pata_s3c_irq : NULL, > > + 0, &pata_s3c_sht); > > + if (ret) > > + goto stop_clk; > > + > > + return 0; > > > > stop_clk: > > clk_disable(info->clk); > > > > --