pmdomain: thead: fix TH1520_AON_PROTOCOL dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 15:48:31 +0000 (16:48 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Mar 2025 10:09:50 +0000 (11:09 +0100)
Kconfig treats the dependency as optional, but the header file only provides
normal declarations and no empty API stubs:

ld: fs/btrfs/extent_io.o: in function `writepage_delalloc':
extent_io.c:(.text+0x2b42): undefined reference to `__udivdi3'
ld: drivers/pmdomain/thead/th1520-pm-domains.o: in function `th1520_pd_power_off':
th1520-pm-domains.c:(.text+0x57): undefined reference to `th1520_aon_power_update'
ld: drivers/pmdomain/thead/th1520-pm-domains.o: in function `th1520_pd_power_on':
th1520-pm-domains.c:(.text+0x8a): undefined reference to `th1520_aon_power_update'
ld: drivers/pmdomain/thead/th1520-pm-domains.o: in function `th1520_pd_probe':
th1520-pm-domains.c:(.text+0xb8): undefined reference to `th1520_aon_init'
ld: th1520-pm-domains.c:(.text+0x1c6): undefined reference to `th1520_aon_power_update'

Since the firmware code can easily be enabled for compile testing, there
is no need to add stubs either, so just make it a hard dependency.

Fixes: dc9a897dbb03 ("pmdomain: thead: Add power-domain driver for TH1520")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Michal Wilczynski <m.wilczynski@samsung.com>
Link: https://lore.kernel.org/r/20250314154834.4053416-1-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/thead/Kconfig

index c7a1ac0c61dc161cb3f4ac752584236b0db48cc0..7d52f8374b074167d508a80fd807929c53faef12 100644 (file)
@@ -2,7 +2,7 @@
 
 config TH1520_PM_DOMAINS
        tristate "Support TH1520 Power Domains"
-       depends on TH1520_AON_PROTOCOL || !TH1520_AON_PROTOCOL
+       depends on TH1520_AON_PROTOCOL
        select REGMAP_MMIO
        help
          This driver enables power domain management for the T-HEAD