From: Andy Shevchenko Date: Mon, 26 Aug 2019 01:48:15 +0000 (+0800) Subject: x86: acpi: Slightly reduce binary size of ACPI tables for Tangier X-Git-Tag: v2019.10-rc4~14^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03f78868aec3057b141d5e1866b8f8b6a7db778e;p=oweals%2Fu-boot.git x86: acpi: Slightly reduce binary size of ACPI tables for Tangier Using ACPI predefined macros, such as Zero or One, will reduce a binary size of resulting ACPI tables. Signed-off-by: Andy Shevchenko Reviewed-by: Bin Meng [bmeng: manually fixed the conflicts when applying] Signed-off-by: Bin Meng --- diff --git a/arch/x86/include/asm/arch-tangier/acpi/platform.asl b/arch/x86/include/asm/arch-tangier/acpi/platform.asl index 353b879918..a75b388c47 100644 --- a/arch/x86/include/asm/arch-tangier/acpi/platform.asl +++ b/arch/x86/include/asm/arch-tangier/acpi/platform.asl @@ -18,7 +18,7 @@ Method(_PTS, 1) /* The _WAK method is called on system wakeup */ Method(_WAK, 1) { - Return (Package() {0, 0}) + Return (Package() { Zero, Zero }) } Scope (_SB) diff --git a/arch/x86/include/asm/arch-tangier/acpi/southcluster.asl b/arch/x86/include/asm/arch-tangier/acpi/southcluster.asl index b8b783b82e..1b9d808b7b 100644 --- a/arch/x86/include/asm/arch-tangier/acpi/southcluster.asl +++ b/arch/x86/include/asm/arch-tangier/acpi/southcluster.asl @@ -10,8 +10,8 @@ Device (PCI0) Name (_HID, EISAID("PNP0A08")) /* PCIe */ Name (_CID, EISAID("PNP0A03")) /* PCI */ - Name (_ADR, 0) - Name (_BBN, 0) + Name (_ADR, Zero) + Name (_BBN, Zero) Name (MCRS, ResourceTemplate() {