Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp94404ybj; Thu, 19 Sep 2019 11:12:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/MniEMuiWlS52i73z2seMibMc9/nY8bMaD/iamWP6yakd9VPdpi8GOAJ5wnkA+y5fsgIY X-Received: by 2002:a50:fd01:: with SMTP id i1mr16568130eds.184.1568916778857; Thu, 19 Sep 2019 11:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568916778; cv=none; d=google.com; s=arc-20160816; b=W4Dx6jvOyt2JN9dAC4BP63tc/7tPC2gmXN4YgFiI16vMQj1Ym54JAHupxAWwpYfWF/ 0/Sr7Uvg96mM1kbr1FP+jN0VK6S+YDObyqo47rm/9b18ymPapkI12Fcbh4g761pzulkB lxHr+2YMAUlWTyYKqpyEzVOmHiRIycmeZ7EmGuLqnmiwSkyuAAW9w8RUv7KmZPb1EmD8 pcU/vJiTxupch7hskcL3cjgLgZzeHkF98Sp2nepF4JI4RDqH58/D4ecuIzOUEASpJDYY cbY2EkDILbrR0w9o4pZslnUaMHPtK0IfrcVkuwofgGqMetxXd7j0ASlf68OsDANBLJpQ uhuQ== 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 :message-id:date:subject:cc:to:from; bh=7E5QTk6nyaDMInOjm0mj0UBPLeQBKC8OXaPuHxGJFA4=; b=QOL9b7WnD+Ve3r+0gh2g6zDwnGDrCluayEnNvBEhgGCHQOe43SJXMCZBGueKfbVuiz v/x62hRB9wkHne2c47aX5G51KcD6U5jsuoR8aoT32hk/+gmRGQIenUE7P0J8mpyOixJ9 baC3tqnjAAvsF+mJrysDpHRZwiFnNZeQqY6G+pJgNkIEYHetIPxa3h8Bgm0kfKKfHwNb 0eHJ7YfR0VUfYHMODnsORnpBY6iCf4BhdyXxzNcoO878B8oe9b8vUAs6IASrhjFHgylq Y1DdnkP9MJvKXMxGPk+u6/lQQpSFeYnHgeJhG6HVaOnDVDFWNNFSMso99g/7u/EZdCTV IogA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si1134285eda.222.2019.09.19.11.12.34; Thu, 19 Sep 2019 11:12:58 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391354AbfISPkp (ORCPT + 99 others); Thu, 19 Sep 2019 11:40:45 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:50933 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389923AbfISPkp (ORCPT ); Thu, 19 Sep 2019 11:40:45 -0400 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: gregory.clement@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E80E8C0002; Thu, 19 Sep 2019 15:40:41 +0000 (UTC) From: Gregory CLEMENT To: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre Cc: Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Gregory CLEMENT Subject: [PATCH] spi: atmel: Remove AVR32 leftover Date: Thu, 19 Sep 2019 17:40:34 +0200 Message-Id: <20190919154034.7489-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AV32 support has been from the kernel a few release ago, but there was still some specific macro for this architecture in this driver. Lets remove it. Signed-off-by: Gregory CLEMENT --- drivers/spi/spi-atmel.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index bb94f5927819..de1e1861a70c 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -222,37 +222,13 @@ | SPI_BF(name, value)) /* Register access macros */ -#ifdef CONFIG_AVR32 -#define spi_readl(port, reg) \ - __raw_readl((port)->regs + SPI_##reg) -#define spi_writel(port, reg, value) \ - __raw_writel((value), (port)->regs + SPI_##reg) - -#define spi_readw(port, reg) \ - __raw_readw((port)->regs + SPI_##reg) -#define spi_writew(port, reg, value) \ - __raw_writew((value), (port)->regs + SPI_##reg) - -#define spi_readb(port, reg) \ - __raw_readb((port)->regs + SPI_##reg) -#define spi_writeb(port, reg, value) \ - __raw_writeb((value), (port)->regs + SPI_##reg) -#else #define spi_readl(port, reg) \ readl_relaxed((port)->regs + SPI_##reg) #define spi_writel(port, reg, value) \ writel_relaxed((value), (port)->regs + SPI_##reg) - -#define spi_readw(port, reg) \ - readw_relaxed((port)->regs + SPI_##reg) #define spi_writew(port, reg, value) \ writew_relaxed((value), (port)->regs + SPI_##reg) -#define spi_readb(port, reg) \ - readb_relaxed((port)->regs + SPI_##reg) -#define spi_writeb(port, reg, value) \ - writeb_relaxed((value), (port)->regs + SPI_##reg) -#endif /* use PIO for small transfers, avoiding DMA setup/teardown overhead and * cache operations; better heuristics consider wordsize and bitrate. */ -- 2.23.0