mmc: sdhci: Use debug for not supported SDMA info message
[oweals/u-boot.git] / drivers / pci / pci_compat.c
index ddaf358e26dc5ffa24012aed736ec73ad8d31037..6c15bdfc034ee5ac4a97a100684e5acc9292ab21 100644 (file)
@@ -1,9 +1,8 @@
+// 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>
@@ -49,5 +48,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));
 }