Blame SOURCES/0002-devtree-Revert-vendor-property-for-Power-System.patch

21ef37
From 26f621009875f3bf1312d64750734420cdd1de03 Mon Sep 17 00:00:00 2001
21ef37
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
21ef37
Date: Tue, 16 Jan 2018 15:29:36 +0530
21ef37
Subject: [PATCH 2/5] devtree: Revert "vendor" property for Power System
21ef37
21ef37
Commit f95aa917 removed vendor property for Power System PowerNV platform.
21ef37
We have "/vendor" property in device tree which gives Vendor name.
21ef37
21ef37
Hence revert changes. Note that this only reverts "vendor" property for
21ef37
particular platform and no side effect on other platform.
21ef37
21ef37
Fixes: f95aa917 (merge patches from beaker-fork)
21ef37
CC: Lyonel Vincent <lyonel@ezix.org>
21ef37
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
21ef37
---
21ef37
 src/core/device-tree.cc | 2 ++
21ef37
 1 file changed, 2 insertions(+)
21ef37
21ef37
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
21ef37
index e14a3b3..2981130 100644
21ef37
--- a/src/core/device-tree.cc
21ef37
+++ b/src/core/device-tree.cc
21ef37
@@ -1432,6 +1432,8 @@ bool scan_device_tree(hwNode & n)
21ef37
   get_ibm_model(n);
21ef37
   if (matches(get_string(DEVICETREE "/compatible"), "^ibm,powernv"))
21ef37
   {
21ef37
+    n.setVendor(get_string(DEVICETREE "/vendor", "IBM"));
21ef37
+
21ef37
     if (exists(DEVICETREE "/model-name"))
21ef37
       n.setProduct(n.getProduct() + " (" +
21ef37
 		   hw::strip(get_string(DEVICETREE "/model-name")) + ")");
21ef37
-- 
21ef37
1.8.3.1
21ef37