]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
i2c: mpc: Drop unused variable
authorGuenter Roeck <linux@roeck-us.net>
Tue, 4 Jul 2023 15:00:31 +0000 (08:00 -0700)
committerWolfram Sang <wsa@kernel.org>
Thu, 6 Jul 2023 19:45:05 +0000 (21:45 +0200)
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>
drivers/i2c/busses/i2c-mpc.c

index fb1b640f33b7bf7cf6788c89898183f78b682f0a..f460a7fb4eae6ff03f07ffe3c95bb3d732fe1d6c 100644 (file)
@@ -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 */