linux-kernelorg-stable/drivers/mfd
Arnd Bergmann d9d79e4f7d mfd: Fix building without CONFIG_OF
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;
      |                                              ^~~~

Replace these with the corresponding dev_fwnode() lookups that
keep the code simpler in addition to avoiding the warnings.

Fixes: e3d44f11da04 ("mfd: Switch to irq_domain_create_*()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250520154106.2019525-1-arnd@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
2025-06-19 11:05:30 +01:00
..
88pm80x.c
88pm800.c
88pm805.c
88pm860x-core.c mfd: Fix building without CONFIG_OF 2025-06-19 11:05:30 +01:00
88pm860x-i2c.c
88pm886.c mfd: 88pm886: Constify struct regmap_irq_chip and some other structures 2025-05-23 08:49:14 +01:00
Kconfig mfd: sec: Add support for S2MPG10 PMIC 2025-05-23 08:48:27 +01:00
Makefile mfd: sec: Merge separate core and irq modules 2025-05-23 08:48:34 +01:00
aat2870-core.c mfd: aat2870: Use per-client debugfs directory 2025-05-22 15:49:58 +01:00
ab8500-core.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
ab8500-sysctrl.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
abx500-core.c
ac100.c
acer-ec-a500.c
act8945a.c
adp5520.c
adp5585.c
altera-a10sr.c
altera-sysmgr.c
arizona-core.c
arizona-i2c.c
arizona-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
arizona-spi.c
arizona.h
as3711.c
as3722.c mfd: as3722: Fix wakeup source leaks on device unbind 2025-05-23 08:49:07 +01:00
at91-usart.c
atc260x-core.c mfd: atc260x: Convert a bunch of commas to semicolons 2024-09-23 16:20:55 +01:00
atc260x-i2c.c
atmel-flexcom.c mfd: atmel-flexcom/rk8xx-core: Convert comma to semicolon 2024-10-16 09:04:09 +01:00
atmel-hlcdc.c
atmel-smc.c mfd: atmel-smc: Reorganize kerneldoc parameter names 2024-10-16 09:04:10 +01:00
axp20x-i2c.c mfd: axp20x: Add support for AXP323 2024-10-31 15:51:29 +00:00
axp20x-rsb.c
axp20x.c mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs 2025-02-20 16:05:09 +00:00
bcm590xx.c mfd: bcm590xx: Add PMU ID/revision parsing function 2025-05-22 10:57:00 +01:00
bcm2835-pm.c
bd9571mwv.c
cgbc-core.c mfd: cgbc-core: Add support for conga-SA8 2025-03-21 11:34:08 +00:00
cros_ec_dev.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
cs40l50-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
cs40l50-i2c.c
cs40l50-spi.c
cs42l43-i2c.c - Fix race in device_node_get_regmap() using more extensive locking. 2025-01-22 09:16:02 -08:00
cs42l43-sdw.c - Fix race in device_node_get_regmap() using more extensive locking. 2025-01-22 09:16:02 -08:00
cs42l43.c - Fix race in device_node_get_regmap() using more extensive locking. 2025-01-22 09:16:02 -08:00
cs42l43.h mfd: cs42l43: Use devres for remove as well 2024-12-17 13:17:25 +00:00
cs47l15-tables.c
cs47l24-tables.c
cs47l35-tables.c
cs47l85-tables.c
cs47l90-tables.c
cs47l92-tables.c
cs5535-mfd.c
da903x.c
da9052-core.c mfd: da9052: Store result from fault_log 2024-12-17 13:17:25 +00:00
da9052-i2c.c
da9052-irq.c
da9052-spi.c mfd: da9052-spi: Change read-mask to write-mask 2024-10-16 09:04:10 +01:00
da9055-core.c
da9055-i2c.c
da9062-core.c
da9063-core.c
da9063-i2c.c
da9063-irq.c
da9150-core.c
db8500-prcmu-regs.h
db8500-prcmu.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
dln2.c
ene-kb3930.c mfd: ene-kb3930: Fix a potential NULL pointer dereference 2025-03-14 08:59:07 +00:00
exynos-lpass.c mfd: exynos-lpass: Fix another error handling path in exynos_lpass_probe() 2025-05-23 08:48:55 +01:00
ezx-pcap.c mfd: ezx-pcap: Remove unused pcap_adc_sync 2025-03-14 08:59:07 +00:00
fsl-imx25-tsadc.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
gateworks-gsc.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hi655x-pmic.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
hi6421-pmic-core.c
hi6421-spmi-pmic.c
intel-lpss-acpi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-lpss-pci.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-lpss.c PM: sleep: Use DPM_FLAG_SMART_SUSPEND conditionally 2025-02-19 13:22:12 +01:00
intel-lpss.h
intel-m10-bmc-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-m10-bmc-pmci.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-m10-bmc-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel_pmc_bxt.c platform/x86: intel_scu_ipc: Move intel_scu_ipc.h out of arch/x86/include/asm 2024-09-11 14:26:03 +02:00
intel_quark_i2c_gpio.c
intel_soc_pmic_bxtwc.c mfd: intel_soc_pmic_*: Consistently use filename as driver name 2024-11-12 12:15:42 +00:00
intel_soc_pmic_chtdc_ti.c mfd: intel_soc_pmic_chtdc_ti: Drop unneeded assignment for cache_type 2025-03-14 08:59:05 +00:00
intel_soc_pmic_chtwc.c mfd: intel_soc_pmic_*: Consistently use filename as driver name 2024-11-12 12:15:42 +00:00
intel_soc_pmic_crc.c mfd: intel_soc_pmic_crc: Drop unneeded assignment for cache_type 2025-03-14 08:59:05 +00:00
intel_soc_pmic_mrfld.c platform/x86: intel_scu_ipc: Move intel_scu_ipc.h out of arch/x86/include/asm 2024-09-11 14:26:03 +02:00
ioc3.c
ipaq-micro.c mfd: ipaq-micro/tps65010: Use str_enable_disable-like helpers 2025-03-14 08:59:05 +00:00
iqs62x.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
janz-cmodio.c
kempld-core.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
khadas-mcu.c
lm3533-core.c
lm3533-ctrlbank.c
lochnagar-i2c.c
lp873x.c
lp3943.c
lp8788-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
lp8788.c
lp87565.c
lpc_ich.c mfd: lpc_ich: Add another Gemini Lake ISA bridge PCI device-id 2024-12-17 13:17:25 +00:00
lpc_sch.c
madera-core.c
madera-i2c.c
madera-spi.c
madera.h
max8907.c
max8925-core.c mfd: Fix building without CONFIG_OF 2025-06-19 11:05:30 +01:00
max8925-i2c.c mfd: max8925: Fix wakeup source leaks on device unbind 2025-05-23 08:49:11 +01:00
max8997-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
max8997.c
max8998-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
max8998.c
max14577.c mfd: max14577: Fix wakeup source leaks on device unbind 2025-05-23 08:49:08 +01:00
max77541.c mfd: max77541: Fix wakeup source leaks on device unbind 2025-05-23 08:49:09 +01:00
max77620.c mfd: max77620: Allow building as a module 2025-03-14 08:59:07 +00:00
max77650.c
max77686.c
max77693.c
max77705.c mfd: max77705: Fix wakeup source leaks on device unbind 2025-05-23 08:49:10 +01:00
max77714.c
max77759.c mfd: max77759: Add Maxim MAX77759 core driver 2025-05-09 15:22:30 +01:00
max77843.c
mc13xxx-core.c
mc13xxx-i2c.c
mc13xxx-spi.c mfd: mc13xxx-spi: Constify struct regmap_bus 2024-08-30 09:40:13 +01:00
mc13xxx.h
mcp-core.c
mcp-sa11x0.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
menelaus.c
menf21bmc.c
mfd-core.c
motorola-cpcap.c
mp2629.c
mt6358-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
mt6360-core.c mfd: mt6360: Use scoped variables with memory allocators to simplify error paths 2024-08-30 09:40:13 +01:00
mt6370.c
mt6370.h
mt6397-core.c mfd: mt6397-core: Add mfd_cell for mt6359-accdet 2025-03-14 08:59:07 +00:00
mt6397-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
mxs-lradc.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
ntxec.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ocelot-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ocelot-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ocelot.h
omap-usb-host.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
omap-usb-tll.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
omap-usb.h
palmas.c
qcom-pm8xxx.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
qcom-pm8008.c
qcom-spmi-pmic.c mfd: qcom-spmi-pmic: Use for_each_child_of_node_scoped() 2024-09-23 16:20:54 +01:00
qcom_rpm.c
qnap-mcu.c mfd: qnap-mcu: Convert commas to semicolons in qnap_mcu_exec() 2025-03-14 10:55:15 +00:00
rave-sp.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rc5t583-irq.c
rc5t583.c
rdc321x-southbridge.c
retu-mfd.c
rk8xx-core.c mfd: rk8xx-core: Check "system-power-controller" first 2024-10-16 09:04:11 +01:00
rk8xx-i2c.c mfd: rk8xx: Add support for rk806 on i2c bus 2024-09-23 16:20:53 +01:00
rk8xx-spi.c
rn5t618.c
rohm-bd718x7.c mfd: rohm-bd718x7: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
rohm-bd9576.c
rohm-bd71828.c mfd: rtc: bd7xxxx Drop IC name from IRQ 2024-11-01 15:53:05 +00:00
rohm-bd96801.c mfd: bd96801: Support ROHM BD96806 2025-04-24 14:53:13 +01:00
rsmu.h
rsmu_core.c
rsmu_i2c.c
rsmu_spi.c
rt4831.c
rt5033.c mfd: rt5033: Fix wakeup source leaks on device unbind 2025-05-23 08:49:12 +01:00
rt5120.c
rz-mtu3.c
rz-mtu3.h
sec-acpm.c mfd: sec: Add support for S2MPG10 PMIC 2025-05-23 08:48:27 +01:00
sec-common.c mfd: sec: Add myself as module author 2025-05-23 08:48:50 +01:00
sec-core.h mfd: sec: Change device_type to int 2025-05-23 08:48:44 +01:00
sec-i2c.c mfd: sec: Add myself as module author 2025-05-23 08:48:50 +01:00
sec-irq.c mfd: sec-irq: Convert to using REGMAP_IRQ_REG() macros 2025-05-23 08:48:49 +01:00
si476x-cmd.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
si476x-i2c.c
si476x-prop.c
simple-mfd-i2c.c mfd: simple-mfd-i2c: Add MAX77705 support 2025-02-20 16:37:33 +00:00
simple-mfd-i2c.h
sky81452.c
sm501.c mfd: sm501: Remove unused sm501_find_clock 2025-05-23 08:49:16 +01:00
smpro-core.c
sprd-sc27xx-spi.c mfd: sprd-sc27xx: Fix wakeup source leaks on device unbind 2025-05-23 08:49:13 +01:00
ssbi.c
stm32-lptimer.c mfd: stm32-lptimer: Add support for stm32mp25 2025-05-13 11:12:52 +01:00
stm32-timers.c mfd: stm32-timers: Add support for stm32mp25 2025-03-14 08:59:05 +00:00
stmfx.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
stmpe-i2c.c
stmpe-spi.c mfd: stmpe-spi: Correct the name used in MODULE_DEVICE_TABLE 2025-05-23 08:48:57 +01:00
stmpe.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
stmpe.h
stpmic1.c mfd: stpmic1: Use devm_register_power_off_handler() 2024-12-17 13:17:25 +00:00
stw481x.c
sun4i-gpadc.c
sun6i-prcm.c
syscon.c * Maxim MAX77705: 2025-03-29 14:33:13 -07:00
tc3589x.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
ti-lmu.c
ti_am335x_tscadc.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
timberdale.c
timberdale.h
tps6105x.c
tps6507x.c
tps6586x.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
tps6594-core.c
tps6594-i2c.c
tps6594-spi.c
tps65010.c mfd: tps65010: Use new GPIO line value setter callbacks 2025-05-23 08:48:12 +01:00
tps65086.c mfd: tps65086: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
tps65090.c mfd: tps65090: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
tps65217.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
tps65218.c mfd: tps65218: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
tps65219.c mfd: tps65219: Add support for TI TPS65214 PMIC 2025-03-14 08:59:06 +00:00
tps65910.c mfd: tps65910: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
tps65911-comparator.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
tps65912-core.c mfd: tps65912: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
tps65912-i2c.c
tps65912-spi.c
tqmx86.c mfd: tqmx86: Add I2C IRQ support 2024-11-12 14:47:00 +00:00
twl-core.c mfd: twl-core: Add a clock subdevice for the TWL6030 2024-10-25 09:48:58 +01:00
twl-core.h
twl4030-audio.c mfd: Switch back to struct platform_driver::remove() 2024-11-01 15:56:58 +00:00
twl4030-irq.c mfd: Fix building without CONFIG_OF 2025-06-19 11:05:30 +01:00
twl4030-power.c
twl6030-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
twl6040.c mfd: twl6040: Constify struct regmap_irq_chip 2024-08-30 09:40:12 +01:00
ucb1x00-assabet.c
ucb1x00-core.c mfd: ucb1x00: Use new GPIO line value setter callbacks 2025-05-23 08:48:13 +01:00
ucb1x00-ts.c
upboard-fpga.c mfd: upboard-fpga: Remove ACPI_PTR() annotation 2025-03-14 08:59:06 +00:00
vexpress-sysreg.c mfd: syscon: Remove the platform driver support 2025-01-09 11:11:47 +00:00
viperboard.c
vx855.c
wcd934x.c mfd: wcd934x: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE() 2024-10-16 09:04:10 +01:00
wl1273-core.c
wm97xx-core.c
wm831x-auxadc.c
wm831x-core.c
wm831x-i2c.c
wm831x-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
wm831x-otp.c
wm831x-spi.c
wm5102-tables.c
wm5110-tables.c
wm8350-core.c
wm8350-gpio.c
wm8350-i2c.c
wm8350-irq.c
wm8350-regmap.c
wm8400-core.c
wm8994-core.c
wm8994-irq.c mfd: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
wm8994-regmap.c
wm8994.h
wm8997-tables.c
wm8998-tables.c