From patchwork Thu Feb 18 13:28:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12093553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DDD9C433E0 for ; Thu, 18 Feb 2021 13:30:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6F8864DA8 for ; Thu, 18 Feb 2021 13:30:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6F8864DA8 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=/p4lLaSj4PcAnrIsrc9g3m4I4B2dGOIm8U2Nf4JDP30=; b=kaRdB8+ds2cylzw90fWhdJYLhC Y6fDbzj+abENyhLpaszb28tV4fm2E/EdMn5GAJWmmVtCfu9o30/URGjl9/ra/FC8NtuIoSGSHP862 NqLTECfTPIAVaXMwynaQpjBzSipIZBjvDmAdUu6LnvVjg+V9Ivkq6qsObNWB7E15uC3GM+3HOq7GH /+bm0p7r6UH1C3QHAUVLEE6LfA2c7PITRO+m3zPpC4JL1ONusSneV4AdY7HkWsC19zc4OC/64+QUt zrNDLSn7k66YaAaVhmKXNGwfWaPajObcBqD5kCo47TzPdXyXYomQrQQl5XCY2tvsWOhCsm0DijaZE u1mYn8rA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCjMT-0002Iu-7Z; Thu, 18 Feb 2021 13:28:53 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCjMP-0002II-VC for linux-arm-kernel@lists.infradead.org; Thu, 18 Feb 2021 13:28:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1613654929; x=1645190929; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DwiOvq1QcHy6JlnUCm+lrwBHZVvgBShvBR+IoOqxj5M=; b=L+IYIizERcq75KxrXsIcKls2pdTgXP6fLb2lN+dmkGtSXmw5XH5SmI+7 XmsPb221TDZuLXjFtQnhaiwi8C4+AGMkqv+d6MqxxSW63lVg0ntMeNLop kCyD6DOXXvK+gD+HRs6ToZxELcanQH12fnHRErDu4RYt+ZW0BLQDWhYom 8cXPs9OTsQ94hjJ6Iwxf9hFlRFTtEYlIuHe7cpVaeFAuvtwexwzK4al7m Gz0H+xIfuFbwvXrgurgIyJ2aCCntR9rFyea/U7AZHTEvHo/Sqz3yv9bZu 45iuPqZK5OsDKSbXYdL1hzlrKaZFHZkm9npMhTRYQvr4N9O6VBVen4grl Q==; IronPort-SDR: ZfjT7QoQWC7E3bmgtnnjqe3AugjAQ70E6GiPujMwWkly976SbHhzdogv1qyLs5cezKmmb03wcg Gi53N/05TlhtZ4sTBFJAsRbQfNBWsPPyM22y1JiIdtB3T0sY+2fiKeKO2EuHeE/wi3SzGVvkrp WsAPjQbCp0ndrt+JkSF7K3rs0/buAU+AHCzsxsL/aArEGzKTF1AgJP2+lxyhzKv69EQGnbWLqD uOL6TGLr3wSKHBWN7znuu7AV53N23Z+sa0aXeVf8gBpG/g8EO1ZA7O96wLYTKptrZ4D4LQvkI4 b3I= X-IronPort-AV: E=Sophos;i="5.81,187,1610434800"; d="scan'208";a="104291412" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Feb 2021 06:28:46 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 18 Feb 2021 06:28:45 -0700 Received: from atudor-ThinkPad-T470p.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 18 Feb 2021 06:28:43 -0700 From: Tudor Ambarus To: Subject: [PATCH] spi: atmel: Drop unused variable Date: Thu, 18 Feb 2021 15:28:40 +0200 Message-ID: <20210218132840.131898-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210218_082851_012513_70083B9F X-CRM114-Status: UNSURE ( 7.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, Tudor Ambarus , linux-kernel@vger.kernel.org, ludovic.desroches@microchip.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The DMA cap mask is no longer used since: commit 7758e390699f ("spi: atmel: remove compat for non DT board when requesting dma chan") Drop it now. Signed-off-by: Tudor Ambarus --- drivers/spi/spi-atmel.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 0e5e64a80848..19d6f228efa0 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -506,10 +506,6 @@ static int atmel_spi_configure_dma(struct spi_master *master, struct device *dev = &as->pdev->dev; int err; - dma_cap_mask_t mask; - dma_cap_zero(mask); - dma_cap_set(DMA_SLAVE, mask); - master->dma_tx = dma_request_chan(dev, "tx"); if (IS_ERR(master->dma_tx)) { err = dev_err_probe(dev, PTR_ERR(master->dma_tx),