1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 09:12:08 +02:00

x86: baytrail: acpi: Create buffers outside of the methods

Create buffers outside of the methods as ACPICA 20200430 complains
about this:

  Remark 2173 - Creation of named objects within a method is highly
  inefficient, use globals or method local variables instead
  (\_SB.PCI0.LPCB.IURT._CRS)

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Bin Meng
2020-05-31 21:15:13 -07:00
parent b9ce32ec3a
commit 319506c7a9

View File

@@ -136,8 +136,6 @@ Device (LPCB)
Store(0, C1EN) Store(0, C1EN)
} }
Method(_CRS, 0, Serialized)
{
Name(BUF0, ResourceTemplate() Name(BUF0, ResourceTemplate()
{ {
IO(Decode16, 0x03f8, 0x03f8, 0x01, 0x08) IO(Decode16, 0x03f8, 0x03f8, 0x01, 0x08)
@@ -150,6 +148,8 @@ Device (LPCB)
IRQNoFlags() { 4 } IRQNoFlags() { 4 }
}) })
Method(_CRS, 0, Serialized)
{
If (LLessEqual(SRID, 0x04)) { If (LLessEqual(SRID, 0x04)) {
Return (BUF0) Return (BUF0)
} Else { } Else {