i2c: mpc: Drop unused variable
Subsystems (2)
PATCH 1/1 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"")
Cc Rob Herring <[email protected]>
Cc Andi Shyti <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- drivers/i2c/busses/i2c-mpc.c | 1 - 1 file changed, 1 deletion(-)
drivers/i2c/busses/i2c-mpc.c +0 -1
@@ -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 */
Signature · 1 line
2.39.2
Wolfram Sang
AppliedQuoted 10 lines · Guenter Roeck
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"")Cc Rob Herring <[email protected]>Cc Andi Shyti <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Let's apply this fast before this patch comes in multiple times...
Applied to for-current, thanks!