aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJianwei Yang <jianwei.yang@intel.com>2010-08-24 14:32:38 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-24 10:42:09 -0700
commit32e2f63bcc8903487975506d8db5931a8c4bbb1f (patch)
tree9a0ea01c64faaf86dcfafac27f44a691f3f77702 /drivers
parenta9728c9a31524ef927260096411ee85c8ee6b163 (diff)
downloadkernel_samsung_smdk4412-32e2f63bcc8903487975506d8db5931a8c4bbb1f.zip
kernel_samsung_smdk4412-32e2f63bcc8903487975506d8db5931a8c4bbb1f.tar.gz
kernel_samsung_smdk4412-32e2f63bcc8903487975506d8db5931a8c4bbb1f.tar.bz2
intel_scu_ipc: fix IPC i2c write bug
We should pass the data to the data register. Signed-off-by: Jianwei Yang <jianwei.yang@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/intel_scu_ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
index 943f908..6abe18e 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -487,7 +487,7 @@ int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data)
mdelay(1);
*data = readl(ipcdev.i2c_base + I2C_DATA_ADDR);
} else if (cmd == IPC_I2C_WRITE) {
- writel(addr, ipcdev.i2c_base + I2C_DATA_ADDR);
+ writel(*data, ipcdev.i2c_base + I2C_DATA_ADDR);
mdelay(1);
writel(addr, ipcdev.i2c_base + IPC_I2C_CNTRL_ADDR);
} else {