summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/files/arch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-06-22 19:08:19 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-06-22 19:08:19 +0000
commit3cc6f9bd75df92bf8c559e10e35be2670f3bd263 (patch)
treef6d4c394853f8ea4a38a5ed3739902ab51774a15 /target/linux/adm5120/files/arch
parent6e1a9a21341ede27b29e6742db7fc3838c55eb1e (diff)
downloadmtk-20170518-3cc6f9bd75df92bf8c559e10e35be2670f3bd263.zip
mtk-20170518-3cc6f9bd75df92bf8c559e10e35be2670f3bd263.tar.gz
mtk-20170518-3cc6f9bd75df92bf8c559e10e35be2670f3bd263.tar.bz2
use __raw_{readl,writel} routines in the GPIO code
SVN-Revision: 11560
Diffstat (limited to 'target/linux/adm5120/files/arch')
-rw-r--r--target/linux/adm5120/files/arch/mips/adm5120/gpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/gpio.c b/target/linux/adm5120/files/arch/mips/adm5120/gpio.c
index 02fd01b..0cb446e 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/gpio.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/gpio.c
@@ -3,8 +3,8 @@
*
* ADM5120 GPIO support
*
- * Copyright (C) 2007 OpenWrt.org
- * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
+ * Copyright (C) 2007-2008 OpenWrt.org
+ * Copyright (C) 2007-2008 Gabor Juhos <juhosg at openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
@@ -28,8 +28,8 @@
#include <adm5120_switch.h>
#include <adm5120_irq.h>
-#define GPIO_READ(r) readl((r))
-#define GPIO_WRITE(v, r) writel((v), (r))
+#define GPIO_READ(r) __raw_readl((r))
+#define GPIO_WRITE(v, r) __raw_writel((v), (r))
#define GPIO_REG(r) (void __iomem *)(KSEG1ADDR(ADM5120_SWITCH_BASE)+r)
struct adm5120_gpio_line {