aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-03-09 09:43:30 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:44:34 -0600
commit62c4332928d12033f9ee49bb8b7638c47d2f1e42 (patch)
tree1f36e90596b8695e98e8ca8227518bf5859cfc18 /drivers/i2c/busses
parent942fcce7e77e51758d51ece395cf37c514aacb97 (diff)
i2c-stm: use cpu_is_* macro
The FS bit is present on 8500v1 and 5500. Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/i2c-stm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-stm.c b/drivers/i2c/busses/i2c-stm.c
index 5a908cb17b3..ab6a84506ec 100644
--- a/drivers/i2c/busses/i2c-stm.c
+++ b/drivers/i2c/busses/i2c-stm.c
@@ -255,7 +255,7 @@ static inline u32 get_i2c_cntlr_reg_cfg(struct i2c_driver_data *priv)
cr |= GEN_MASK(0, I2C_CR_DMA_SLE, I2C_CR_DMA_SLE_POS);
cr |= GEN_MASK(0, I2C_CR_FON, I2C_CR_FON_POS);
cr |= GEN_MASK(1, I2C_CR_PE, I2C_CR_PE_POS);
- if (!u8500_is_earlydrop())
+ if (!cpu_is_u8500ed())
cr |= GEN_MASK(0, I2C_CR_FS, I2C_CR_FS_POS);
/* modified for touch screen client */
if (priv->adap.nr == 3)