public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: mpc: Drop unused variable
@ 2023-07-04 15:00 Guenter Roeck
  2023-07-06 19:42 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2023-07-04 15:00 UTC (permalink / raw)
  To: Andi Shyti
  Cc: Wolfram Sang, linux-i2c, linux-kernel, Guenter Roeck, Rob Herring

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 <robh@kernel.org>
Cc: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c: mpc: Drop unused variable
  2023-07-04 15:00 [PATCH] i2c: mpc: Drop unused variable Guenter Roeck
@ 2023-07-06 19:42 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2023-07-06 19:42 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Andi Shyti, linux-i2c, linux-kernel, Rob Herring

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

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 <robh@kernel.org>
> Cc: Andi Shyti <andi.shyti@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Let's apply this fast before this patch comes in multiple times...

Applied to for-current, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-06 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-04 15:00 [PATCH] i2c: mpc: Drop unused variable Guenter Roeck
2023-07-06 19:42 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox