提交 50ac697b 编写于 作者: S Shubhrajyoti Datta 提交者: Mark Brown

spi: cadence: Fix probe error handling

The clock disabling is missed out in some
error cases at probe. Fix the same.
Signed-off-by: NShubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 24746675
...@@ -527,7 +527,7 @@ static int cdns_spi_probe(struct platform_device *pdev) ...@@ -527,7 +527,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
if (irq <= 0) { if (irq <= 0) {
ret = -ENXIO; ret = -ENXIO;
dev_err(&pdev->dev, "irq number is invalid\n"); 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, ret = devm_request_irq(&pdev->dev, irq, cdns_spi_irq,
...@@ -535,7 +535,7 @@ static int cdns_spi_probe(struct platform_device *pdev) ...@@ -535,7 +535,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
if (ret != 0) { if (ret != 0) {
ret = -ENXIO; ret = -ENXIO;
dev_err(&pdev->dev, "request_irq failed\n"); dev_err(&pdev->dev, "request_irq failed\n");
goto remove_master; goto clk_dis_all;
} }
master->prepare_transfer_hardware = cdns_prepare_transfer_hardware; master->prepare_transfer_hardware = cdns_prepare_transfer_hardware;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册