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(-)
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 */
--
2.39.2
On Tue, Jul 04, 2023 at 08:00:31AM -0700, Guenter Roeck wrote:
> 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!