From patchwork Wed Nov 13 09:42:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179278 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347537ilf; Wed, 13 Nov 2019 01:42:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxXGjuH/28f/yfdSnJGsez0C5RAmuNt1UItOhq6OpLMHJ/V/ENOZaM4AXZ3nxnKuoizCXfw X-Received: by 2002:a17:906:7c5:: with SMTP id m5mr1747838ejc.231.1573638168775; Wed, 13 Nov 2019 01:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638168; cv=none; d=google.com; s=arc-20160816; b=Zdk2NWkkyZ6mSJ89SAAFty7shv0v4e4cr2GfIYqJT99SX2VaelgYOLMIT0zQPbuRT5 zaUk+L6Fgac5ascHHeVf5p1LdfSNaJ/KAAD4r3G3kLJUPtUEtBRc3rFbiMEJ7TeXzFf7 WijtSNiq2or28vHgIiq216Pq3mvFTL6dxZSa9oiJOWrxGuNv86iAtUhiZCSUOJPsrgID lbNGmUOKup17Rqzj4Tna4HVIqoCO0IWR6wKFgI7jh0yaxPCtJEbLRZOQ+CAlE8RDPABu 3nBBlv8MDFm5g7WadeTqZ5dPHAaqFEhrDBExErvyA14UVNxoxtX0Gj30e7BUTG3uWe2X meKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uYKBuyLdetSTRxbmHbnWaKxFuaOEFcU7Tdum2JoyQs0=; b=xLSY8KMSpKETbAMlH4UafORkDGaiqPRyDVF/s9RC3MYZ7u478BWo8VUa682p8s/phi JZlrY5qIMpZgyKmdRRcB6hjMZWrE5z+/3v2WX7n1+8TvUJKbrT2YZIJle2AJxWG3WUlf sXJ2XlrMS7SYpimubdiEdT0kE+Sf0A5TigAMXON99vIWGqDCoRGPpjyjFj7RwY+r6RqW zH+JvdT1pLoLOHqvJZMbxkhJ2ZD406GFqU7/CTQlWWzMUmzW4Y+sfTnGA7/XEnX8l4MI xQoxres9fainH49yJ0d1CT51h38SZX98yjY8r4HwTp8Y66+hCKOnJwGss8NLxBjqFnTh jS4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jIx3HQzN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si1156663edr.22.2019.11.13.01.42.48; Wed, 13 Nov 2019 01:42:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jIx3HQzN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727597AbfKMJmp (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:45 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38596 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727341AbfKMJmo (ORCPT ); Wed, 13 Nov 2019 04:42:44 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9gIlW086657; Wed, 13 Nov 2019 03:42:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638139; bh=uYKBuyLdetSTRxbmHbnWaKxFuaOEFcU7Tdum2JoyQs0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jIx3HQzN3FYZVi6o7k9ISO2e5Jdsg1n1nn4A27PdbaIEBNcx6yiIEQkiocDZMsdp7 vNEKObFNzuEgDowoQf4mHn6PX/X293mjHC9x54EwL8/FRBp/GGqCjIa48cqbBDHMPc Y7XYuFbkX6HduYKWXytB0NkNYxWV54W81wqSqX58= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9gIa0084580 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:42:18 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 13 Nov 2019 03:41:59 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 13 Nov 2019 03:41:59 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9feM7072663; Wed, 13 Nov 2019 03:42:12 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 7/9] spi: s3c64xx: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:54 +0200 Message-ID: <20191113094256.1108-8-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113094256.1108-1-peter.ujfalusi@ti.com> References: <20191113094256.1108-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dma_request_slave_channel_reason() is: #define dma_request_slave_channel_reason(dev, name) \ dma_request_chan(dev, name) Signed-off-by: Peter Ujfalusi --- drivers/spi/spi-s3c64xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 7b7151ec14c8..cf67ea60dc0e 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1154,15 +1154,13 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) if (!is_polling(sdd)) { /* Acquire DMA channels */ - sdd->rx_dma.ch = dma_request_slave_channel_reason(&pdev->dev, - "rx"); + sdd->rx_dma.ch = dma_request_chan(&pdev->dev, "rx"); if (IS_ERR(sdd->rx_dma.ch)) { dev_err(&pdev->dev, "Failed to get RX DMA channel\n"); ret = PTR_ERR(sdd->rx_dma.ch); goto err_disable_io_clk; } - sdd->tx_dma.ch = dma_request_slave_channel_reason(&pdev->dev, - "tx"); + sdd->tx_dma.ch = dma_request_chan(&pdev->dev, "tx"); if (IS_ERR(sdd->tx_dma.ch)) { dev_err(&pdev->dev, "Failed to get TX DMA channel\n"); ret = PTR_ERR(sdd->tx_dma.ch);