aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Sanghvi <Kumar.Sanghvi@stericsson.com>2010-04-09 08:39:45 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:44:58 -0600
commit01cf05118a263b03fcaeda39b7bd82d6db0f51c6 (patch)
tree21eeb223e2a931befc63aff5a6f2d6cf86fde0ec
parent4419ad39829b745b512a288ea336c88d40454d8a (diff)
downloadlinux-2.6.34-ux500-01cf05118a263b03fcaeda39b7bd82d6db0f51c6.tar.gz
PRCMU: Correcting misplaced write with a read in i2c_read function
Signed-off-by: Kumar Sanghvi <Kumar.Sanghvi@stericsson.com>
-rwxr-xr-xarch/arm/mach-ux500/prcmu-fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/prcmu-fw.c b/arch/arm/mach-ux500/prcmu-fw.c
index 1e3835ddcc2..8dfec34914d 100755
--- a/arch/arm/mach-ux500/prcmu-fw.c
+++ b/arch/arm/mach-ux500/prcmu-fw.c
@@ -1386,7 +1386,7 @@ int prcmu_i2c_read(u8 reg, u8 slave)
reg, slave);
/* prepare the data for mailbox 5 */
- writeb((reg << 1) | I2CWRITE, PRCM_REQ_MB5_I2COPTYPE_REG);
+ writeb((reg << 1) | I2CREAD, PRCM_REQ_MB5_I2COPTYPE_REG);
writeb((1 << 3) | 0x0, PRCM_REQ_MB5_BIT_FIELDS);
writeb(slave, PRCM_REQ_MB5_I2CSLAVE);
writeb(0, PRCM_REQ_MB5_I2CVAL);