]> Git Repo - J-u-boot.git/blobdiff - drivers/mtd/altera_qspi.c
.gitlab-ci.yml: add Qemu tests for MIPS Malta board
[J-u-boot.git] / drivers / mtd / altera_qspi.c
index e04964b558e54653a6b7915bf4711883e1f7f2aa..cd4d32959a0dfbff07bfee46b661a25bb8cf4915 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2015 Thomas Chou <[email protected]>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -10,8 +9,10 @@
 #include <errno.h>
 #include <fdt_support.h>
 #include <flash.h>
+#include <log.h>
 #include <mtd.h>
 #include <asm/io.h>
+#include <linux/bitops.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -362,7 +363,7 @@ static int altera_qspi_ofdata_to_platdata(struct udevice *dev)
         * match with reg-names.
         */
        parent = fdt_parent_offset(blob, node);
-       of_bus_default_count_cells(blob, parent, &addrc, &sizec);
+       fdt_support_default_count_cells(blob, parent, &addrc, &sizec);
        list = fdt_getprop(blob, node, "reg-names", &len);
        if (!list)
                return -ENOENT;
This page took 0.02571 seconds and 4 git commands to generate.