Blame SOURCES/0038-pci-root-actually-create-the-device-path-node.patch

36520b
From 0d63973b32767e1c4d44c0c172ae6222d9acefff Mon Sep 17 00:00:00 2001
36520b
From: Peter Jones <pjones@redhat.com>
36520b
Date: Mon, 1 Oct 2018 14:33:20 -0400
36520b
Subject: [PATCH 38/39] pci-root: actually create the device path node.
36520b
36520b
Signed-off-by: Peter Jones <pjones@redhat.com>
36520b
---
36520b
 src/linux-pci-root.c | 5 +----
36520b
 1 file changed, 1 insertion(+), 4 deletions(-)
36520b
36520b
diff --git a/src/linux-pci-root.c b/src/linux-pci-root.c
36520b
index 269e30e2c31..a2d9fb04a11 100644
36520b
--- a/src/linux-pci-root.c
36520b
+++ b/src/linux-pci-root.c
36520b
@@ -87,9 +87,9 @@ static ssize_t
36520b
 dp_create_pci_root(struct device *dev UNUSED,
36520b
                    uint8_t *buf, ssize_t size, ssize_t off)
36520b
 {
36520b
+        ssize_t new = 0, sz = 0;
36520b
         debug("entry buf:%p size:%zd off:%zd", buf, size, off);
36520b
         debug("returning 0");
36520b
-#if 0
36520b
         if (dev->acpi_root.acpi_uid_str) {
36520b
                 debug("creating acpi_hid_ex dp hid:0x%08x uid:\"%s\"",
36520b
                       dev->acpi_root.acpi_hid,
36520b
@@ -120,9 +120,6 @@ dp_create_pci_root(struct device *dev UNUSED,
36520b
 
36520b
         debug("returning %zd", sz);
36520b
         return sz;
36520b
-#else
36520b
-        return 0;
36520b
-#endif
36520b
 }
36520b
 
36520b
 enum interface_type pci_root_iftypes[] = { pci_root, unknown };
36520b
-- 
36520b
2.17.1
36520b