[OpenBIOS] [PATCH 1/4] pci: Use get_path_from_ph() function from libopenbios
BALATON Zoltan
balaton at eik.bme.hu
Sun Nov 20 18:39:09 CET 2016
Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
---
drivers/pci.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/pci.c b/drivers/pci.c
index 92a02d4..b75ca0f 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -671,10 +671,7 @@ static void ob_pci_reload_device_path(phandle_t phandle, pci_config_t *config)
{
/* since "name" and "reg" are now assigned
we need to reload current node name */
-
- PUSH(phandle);
- fword("get-package-path");
- char *new_path = pop_fstr_copy();
+ char *new_path = get_path_from_ph(phandle);
if (new_path) {
if (0 != strcmp(config->path, new_path)) {
PCI_DPRINTF("\n=== CHANGED === package path old=%s new=%s\n",
--
2.7.4
More information about the OpenBIOS
mailing list