From: Michal Simek <michal.simek@xxxxxxxxxx> Date: Thu, 28 Jul 2016 14:59:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use readl/writel for ARM64 instead of __raw versions. This patch also remove compilation warnings: drivers/gpio/gpio-xilinx.c: In function ‘xgpio_irq_mask’: drivers/gpio/gpio-xilinx.c:300:12: warning: large integer implicitly truncated to unsigned type [-Woverflow] ~XGPIO_GIER_IE); ^ drivers/gpio/gpio-xilinx.c:48:51: note: in definition of macro ‘xgpio_writereg’ # define xgpio_writereg(offset, val) __raw_writel(val, offset) Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx> Signed-off-by: Alexander Hedges <ahedges@xxxxxxx> (cherry picked from commit c8105d8066c1b9ba5f8e160c213c7605ba6dffab) --- drivers/gpio/gpio-xilinx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c index 98293743012d..461f00743d7e 100644 --- a/drivers/gpio/gpio-xilinx.c +++ b/drivers/gpio/gpio-xilinx.c @@ -40,7 +40,7 @@ #define XGPIO_CHANNEL_OFFSET 0x8 /* Read/Write access to the GPIO registers */ -#if defined(CONFIG_ARCH_ZYNQ) || defined(CONFIG_X86) +#if defined(CONFIG_ARCH_ZYNQ) || defined(CONFIG_ARM64) # define xgpio_readreg(offset) readl(offset) # define xgpio_writereg(offset, val) writel(val, offset) #else -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html