[PATCH v1 2/3] arm64: gate the whole of pci-xgene on CONFIG_PCI_XGENE

Alex Bennée
2020-08-04T12:47:19Z

This is a little weirder as bits of the file are already conditioned
on the exiting symbol. Either way they are not actually needed for
non-xgene machines saving another 12k:

-rwxr-xr-x 1 alex alex 86033880 Aug 3 16:39 vmlinux.orig*
-rwxr-xr-x 1 alex alex 85652472 Aug 3 16:54 vmlinux.rm-thunder*
-rwxr-xr-x 1 alex alex 85639808 Aug 3 17:12 vmlinux*

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
drivers/pci/controller/Makefile | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/pci/controller/Makefile b/drivers/pci/controller/Makefile
index 8fad4781a5d3..3b9b72f5773a 100644
--- a/drivers/pci/controller/Makefile
+++ b/drivers/pci/controller/Makefile
@@ -47,6 +47,4 @@ obj-y += mobiveil/

obj-$(CONFIG_PCI_THUNDER) += pci-thunder-ecam.o
obj-$(CONFIG_PCI_THUNDER) += pci-thunder-pem.o
-ifdef CONFIG_PCI
-obj-$(CONFIG_ARM64) += pci-xgene.o
-endif
+obj-$(CONFIG_PCI_XGENE) += pci-xgene.o
--
2.20.1