diff options
Diffstat (limited to 'arch/sh/drivers/superhyway/ops-sh4-202.c')
-rw-r--r-- | arch/sh/drivers/superhyway/ops-sh4-202.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/drivers/superhyway/ops-sh4-202.c b/arch/sh/drivers/superhyway/ops-sh4-202.c index 3b14bf860db6..6da62e9475c4 100644 --- a/arch/sh/drivers/superhyway/ops-sh4-202.c +++ b/arch/sh/drivers/superhyway/ops-sh4-202.c | |||
@@ -134,8 +134,8 @@ static int sh4202_read_vcr(unsigned long base, struct superhyway_vcr_info *vcr) | |||
134 | * | 134 | * |
135 | * Do not trust the documentation, for it is evil. | 135 | * Do not trust the documentation, for it is evil. |
136 | */ | 136 | */ |
137 | vcrh = ctrl_inl(base); | 137 | vcrh = __raw_readl(base); |
138 | vcrl = ctrl_inl(base + sizeof(u32)); | 138 | vcrl = __raw_readl(base + sizeof(u32)); |
139 | 139 | ||
140 | tmp = ((u64)vcrh << 32) | vcrl; | 140 | tmp = ((u64)vcrh << 32) | vcrl; |
141 | memcpy(vcr, &tmp, sizeof(u64)); | 141 | memcpy(vcr, &tmp, sizeof(u64)); |
@@ -147,8 +147,8 @@ static int sh4202_write_vcr(unsigned long base, struct superhyway_vcr_info vcr) | |||
147 | { | 147 | { |
148 | u64 tmp = *(u64 *)&vcr; | 148 | u64 tmp = *(u64 *)&vcr; |
149 | 149 | ||
150 | ctrl_outl((tmp >> 32) & 0xffffffff, base); | 150 | __raw_writel((tmp >> 32) & 0xffffffff, base); |
151 | ctrl_outl(tmp & 0xffffffff, base + sizeof(u32)); | 151 | __raw_writel(tmp & 0xffffffff, base + sizeof(u32)); |
152 | 152 | ||
153 | return 0; | 153 | return 0; |
154 | } | 154 | } |