acpi/gpex: no reason to use a method for _CRS
commit55c2f967c19fdbf6b19e32938ae2b3dd70389be8
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Sep 2020 10:42:55 +0000 (28 12:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 30 Sep 2020 09:29:56 +0000 (30 11:29 +0200)
tree5653686e6fc626371d9b5a6f0ba0faccba4a9619
parent18bb73b3273d0c55ce1db1f8ab123d3d53506c7b
acpi/gpex: no reason to use a method for _CRS

... just to return something which is constant anyway.

-            Method (_CRS, 0, NotSerialized)  // _CRS: Current Resource Settings
-            {
-                Return (ResourceTemplate ()
-                {
-                    WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
[ ... ]

+            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
+            {
+                WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
[ ... ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20200928104256.9241-12-kraxel@redhat.com
hw/pci-host/gpex-acpi.c