genpd: move owl-sps-helper.c from drivers/soc
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Jul 2023 11:49:36 +0000 (13:49 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 26 Jul 2023 12:41:01 +0000 (14:41 +0200)
Moving only one of the two files in drivers/soc/actions to drivers/genpd
caused a link failure in allmodconfig, as drivers/genpd is entered
for compile testing, but drivers/soc/actions accidentally got skipped:

x86_64-linux-gnu-ld: vmlinux.o: in function `owl_sps_set_power':
owl-sps.c:(.text+0x16e259d): undefined reference to `owl_sps_set_pg'

Move the other one as well to allow build testing to work correctly.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/genpd/actions/Makefile
drivers/genpd/actions/owl-sps-helper.c [moved from drivers/soc/actions/owl-sps-helper.c with 100% similarity]
drivers/soc/Makefile
drivers/soc/actions/Makefile [deleted file]

index e78c420..7e8aa47 100644 (file)
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0+
+obj-$(CONFIG_OWL_PM_DOMAINS_HELPER)    += owl-sps-helper.o
 obj-$(CONFIG_OWL_PM_DOMAINS)           += owl-sps.o
index efdcd42..708eaad 100644 (file)
@@ -3,7 +3,6 @@
 # Makefile for the Linux Kernel SOC specific device drivers.
 #
 
-obj-$(CONFIG_ARCH_ACTIONS)     += actions/
 obj-y                          += apple/
 obj-y                          += aspeed/
 obj-$(CONFIG_ARCH_AT91)                += atmel/
diff --git a/drivers/soc/actions/Makefile b/drivers/soc/actions/Makefile
deleted file mode 100644 (file)
index 4ac88fe..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-
-obj-$(CONFIG_OWL_PM_DOMAINS_HELPER) += owl-sps-helper.o