Commit 85b3a9356e84f683dd27fe8b73ad15608b4fc2c5
Committed by
Wolfram Sang
1 parent
c1a9946780
Exists in
master
and in
20 other branches
i2c: mv64xxx: Do not use writel_relaxed()
The driver is used on PowerPC which don't provide writel_relaxed(). This breaks the c2k and prpmc2800 default configurations. To fix the build, turn the calls to writel_relaxed() into writel(). The impacts for ARM should be minimal. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/i2c/busses/i2c-mv64xxx.c
... | ... | @@ -234,9 +234,9 @@ |
234 | 234 | ctrl_reg |= MV64XXX_I2C_BRIDGE_CONTROL_WR | |
235 | 235 | (msg->len - 1) << MV64XXX_I2C_BRIDGE_CONTROL_TX_SIZE_SHIFT; |
236 | 236 | |
237 | - writel_relaxed(data_reg_lo, | |
237 | + writel(data_reg_lo, | |
238 | 238 | drv_data->reg_base + MV64XXX_I2C_REG_TX_DATA_LO); |
239 | - writel_relaxed(data_reg_hi, | |
239 | + writel(data_reg_hi, | |
240 | 240 | drv_data->reg_base + MV64XXX_I2C_REG_TX_DATA_HI); |
241 | 241 | |
242 | 242 | } else { |