Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1371872 > unrolled thread

[PATCH 3/7] spi: cadence: Fix probe error handling

Started byShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
First post2016-04-05 20:30 +0200
Last post2016-04-05 20:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/7] spi: cadence: Fix probe error handling Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> - 2016-04-05 20:30 +0200

#1371872 — [PATCH 3/7] spi: cadence: Fix probe error handling

FromShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Date2016-04-05 20:30 +0200
Subject[PATCH 3/7] spi: cadence: Fix probe error handling
Message-ID<rkDTJ-8d1-29@gated-at.bofh.it>
The clock disabling is missed out in some
error cases at probe. Fix the same.

Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
---
 drivers/spi/spi-cadence.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index 97a3bf6..2915b25 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -527,7 +527,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
 	if (irq <= 0) {
 		ret = -ENXIO;
 		dev_err(&pdev->dev, "irq number is invalid\n");
-		goto remove_master;
+		goto clk_dis_all;
 	}
 
 	ret = devm_request_irq(&pdev->dev, irq, cdns_spi_irq,
@@ -535,7 +535,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
 	if (ret != 0) {
 		ret = -ENXIO;
 		dev_err(&pdev->dev, "request_irq failed\n");
-		goto remove_master;
+		goto clk_dis_all;
 	}
 
 	master->prepare_transfer_hardware = cdns_prepare_transfer_hardware;
-- 
1.7.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web