Skip to content

Commit 6537ed3

Browse files
groeckwsakernel
authored andcommitted
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: 9d178e0 ("i2c: mpc: Use of_property_read_reg() to parse "reg"") Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 05f933d commit 6537ed3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/i2c/busses/i2c-mpc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ static void mpc_i2c_setup_512x(struct device_node *node,
307307
{
308308
struct device_node *node_ctrl;
309309
void __iomem *ctrl;
310-
const u32 *pval;
311310
u32 idx;
312311

313312
/* Enable I2C interrupts for mpc5121 */

0 commit comments

Comments
 (0)