]> git.sur5r.net Git - u-boot/blobdiff - drivers/spi/spi-uclass.c
board: arm: Add support for Broadcom BCM7445
[u-boot] / drivers / spi / spi-uclass.c
index 15d90a54a1e61f82a67e56a0afbc1286fe348838..c517d066f693f44d94fd805308ff8af4b5948a9c 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2014 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -274,7 +273,7 @@ int spi_get_bus_and_cs(int busnum, int cs, int speed, int mode,
        bool created = false;
        int ret;
 
-#if CONFIG_IS_ENABLED(OF_PLATDATA)
+#if CONFIG_IS_ENABLED(OF_PLATDATA) || CONFIG_IS_ENABLED(OF_PRIOR_STAGE)
        ret = uclass_first_device_err(UCLASS_SPI, &bus);
 #else
        ret = uclass_get_device_by_seq(UCLASS_SPI, busnum, &bus);