]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: mt6363: select CONFIG_IRQ_DOMAIN
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 May 2026 10:19:37 +0000 (12:19 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 26 May 2026 14:17:16 +0000 (15:17 +0100)
When build-testing this driver without CONFIG_IRQ_DOMAIN causes
a compile-time error:

drivers/regulator/mt6363-regulator.c: In function 'mt6363_regulator_probe':
drivers/regulator/mt6363-regulator.c:884:18: error: implicit declaration of function 'irq_find_host' [-Wimplicit-function-declaration]
  884 |         domain = irq_find_host(interrupt_parent);
      |                  ^~~~~~~~~~~~~
drivers/regulator/mt6363-regulator.c:884:16: error: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  884 |         domain = irq_find_host(interrupt_parent);
      |                ^
drivers/regulator/mt6363-regulator.c:896:30: error: implicit declaration of function 'irq_create_fwspec_mapping'; did you mean 'irq_create_of_mapping'? [-Wimplicit-function-declaration]
  896 |                 info->virq = irq_create_fwspec_mapping(&fwspec);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                              irq_create_of_mapping

This is rather hard to trigger because so many other drivers
enable IRQ_DOMAIN already, but I ran into this on an s390
randconfig build.

Ensure this is always enabled using a Kconfig 'select IRQ_DOMAIN'
entry, as we do for all other users of this.

Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20260526102003.2527570-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig

index 78076ac6eac4d096e7dd97918193b1f3ee92853c..87554ab92801df1eb49ced0c007e6a47d241a1ea 100644 (file)
@@ -977,6 +977,7 @@ config REGULATOR_MT6363
        tristate "MT6363 SPMI PMIC regulator driver"
        depends on SPMI
        select REGMAP_SPMI
+       select IRQ_DOMAIN
        help
          Say Y here to enable support for regulators found in the MediaTek
          MT6363 SPMI PMIC.