]> Git Repo - J-u-boot.git/blobdiff - drivers/pci/pci_compat.c
Merge patch series "Update PHYTEC SOM Detection"
[J-u-boot.git] / drivers / pci / pci_compat.c
index ddaf358e26dc5ffa24012aed736ec73ad8d31037..9dddca8efe07a14873cad62049fa5aa620b3eba1 100644 (file)
@@ -1,13 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Compatibility functions for pre-driver-model code
  *
  * Copyright (C) 2014 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <log.h>
 #include <malloc.h>
 #include <pci.h>
 #include <dm/device-internal.h>
@@ -49,5 +49,5 @@ struct pci_controller *pci_bus_to_hose(int busnum)
                return NULL;
        }
 
-       return dev_get_uclass_priv(bus);
+       return dev_get_uclass_priv(pci_get_controller(bus));
 }
This page took 0.025022 seconds and 4 git commands to generate.