Message ID | 20201210142604.326645697@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp5685240ejs; Thu, 10 Dec 2020 06:31:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1dr/1E6VyeJ4CQLRiCMmSIBg2sGu1ODtefzuzwztUE3frQO95eZmdFsu6Q5E1ZlTqg81H X-Received: by 2002:aa7:d64d:: with SMTP id v13mr7116815edr.196.1607610664796; Thu, 10 Dec 2020 06:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607610664; cv=none; d=google.com; s=arc-20160816; b=zZx3mhpVJxR+LCjI1PEjNaSNqFKk/8f/U6oZP6YlzWQahJou+oohhGtnJ9DKnQBsDx BL0f8UdxnydiXgdrs9LGG0jcTJbX/bqh26jDT0Jcevbl+v8mArXxPflLRYwRGnipjVUK etvECaS3M0Q2Er/m296Y/mahed/DOkvkcGlktSGfbxnSmTKTqiq/GR1HanzUGHyDfZQZ s8blczw03Naby+IiauEd16fNhrz98FhX+J60yHmFW//KNCy++ddyPDb+zIFWU/48q+rk AVbJ6DguQTdaA2eZZAm99u5p9Kx3jnN38a6SIptrv1mGFEC6xHzbYLMLozyELr9+rKGi UXLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=6D88s7DOWyjGVir7vZez2w/UN7xbSnSwumjfPeDTvdg=; b=F1uP8dWSWigI7q4yvH0MUUDeIggebgZoonFWAvygEXV7I1qF65IS9HShsK+4J3GcpS +MfbjKLYjFpT0G6RGLohUTZ/SLSej5YLD/Xd/pvwIK9zkbJT61MPSCU6P2cn1jVKfwu1 iBxAWf2RCUNJdZN7o+Dt3Yc7i6viUE3b0gn/3lcMdFRsx+lYEm2BCaq583NwmuXVVoTc S6MWNAa23XnACOnqUQYRov/CwbPD+Ery5i4Lr28Cd5yMm/Y8R7uw/O8Jsidz9Y7GmyMx tQBP99UA/RbEFrnr+SqjC3wlPrPQZfs5/aV2AtXA+UJeTk4Y/cJFJ6UTO/auFLNQ92kW CwbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si2562064ejd.551.2020.12.10.06.31.04; Thu, 10 Dec 2020 06:31:04 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390294AbgLJOal (ORCPT <rfc822;semen.protsenko@linaro.org> + 14 others); Thu, 10 Dec 2020 09:30:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:38622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733026AbgLJOaj (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 10 Dec 2020 09:30:39 -0500 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Peter Ujfalusi <peter.ujfalusi@ti.com>, Nicolas Saenz Julienne <nsaenzjulienne@suse.de>, Mark Brown <broonie@kernel.org>, Lukas Wunner <lukas@wunner.de> Subject: [PATCH 4.9 40/45] spi: bcm2835: Release the DMA channel if probe fails after dma_init Date: Thu, 10 Dec 2020 15:26:54 +0100 Message-Id: <20201210142604.326645697@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201210142602.361598591@linuxfoundation.org> References: <20201210142602.361598591@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c @@ -787,18 +787,19 @@ static int bcm2835_spi_probe(struct plat dev_name(&pdev->dev), master); if (err) { dev_err(&pdev->dev, "could not request IRQ: %d\n", err); - goto out_clk_disable; + goto out_dma_release; } err = spi_register_master(master); if (err) { dev_err(&pdev->dev, "could not register SPI master: %d\n", err); - goto out_clk_disable; + goto out_dma_release; } return 0; -out_clk_disable: +out_dma_release: + bcm2835_dma_release(master); clk_disable_unprepare(bs->clk); return err; }