Re: (subset) [PATCH] mfd: fix building without CONFIG_OF

From: Lee Jones
Date: Thu Jun 12 2025 - 06:02:30 EST


On Tue, 20 May 2025 17:40:43 +0200, Arnd Bergmann wrote:
> Using the of_fwnode_handle() means that local 'node' variables are unused
> whenever CONFIG_OF is disabled for compile testing:
>
> drivers/mfd/88pm860x-core.c: In function 'device_irq_init':
> drivers/mfd/88pm860x-core.c:576:29: error: unused variable 'node' [-Werror=unused-variable]
> 576 | struct device_node *node = i2c->dev.of_node;
> | ^~~~
> drivers/mfd/max8925-core.c: In function 'max8925_irq_init':
> drivers/mfd/max8925-core.c:659:29: error: unused variable 'node' [-Werror=unused-variable]
> 659 | struct device_node *node = chip->dev->of_node;
> | ^~~~
> drivers/mfd/twl4030-irq.c: In function 'twl4030_init_irq':
> drivers/mfd/twl4030-irq.c:679:46: error: unused variable 'node' [-Werror=unused-variable]
> 679 | struct device_node *node = dev->of_node;
> | ^~~~
>
> [...]

Applied, thanks!

[1/1] mfd: fix building without CONFIG_OF
commit: fc5f017a71d08eea3983762ce57d27e5bc300db1

--
Lee Jones [李琼斯]