summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-mpc.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2023-07-04 17:00:31 +0200
committerWolfram Sang <wsa@kernel.org>2023-07-06 21:45:05 +0200
commit6537ed3904a3b3720e5e238dd5d542448fcf94c2 (patch)
tree8ff58a9c4259f0083f653d0801e15c9e55c5d4bf /drivers/i2c/busses/i2c-mpc.c
parenti2c: nomadik: Remove a useless call in the remove function (diff)
downloadlinux-6537ed3904a3b3720e5e238dd5d542448fcf94c2.tar.xz
linux-6537ed3904a3b3720e5e238dd5d542448fcf94c2.zip
i2c: mpc: Drop unused variable
Fix the following build error. Error log: drivers/i2c/busses/i2c-mpc.c: In function 'mpc_i2c_setup_512x': drivers/i2c/busses/i2c-mpc.c:310:20: error: unused variable 'pval' Fixes: 9d178e00583e ("i2c: mpc: Use of_property_read_reg() to parse "reg"") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/i2c/busses/i2c-mpc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
index fb1b640f33b7..f460a7fb4eae 100644
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/drivers/i2c/busses/i2c-mpc.c
@@ -307,7 +307,6 @@ static void mpc_i2c_setup_512x(struct device_node *node,
{
struct device_node *node_ctrl;
void __iomem *ctrl;
- const u32 *pval;
u32 idx;
/* Enable I2C interrupts for mpc5121 */