summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c')
-rw-r--r--c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c b/c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c
deleted file mode 100644
index 8a96afbee6..0000000000
--- a/c/src/lib/libbsp/sparc/shared/amba/ambapp_depth.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * AMBA Plug & Play routines
- *
- * COPYRIGHT (c) 2011
- * Aeroflex Gaisler
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <ambapp.h>
-
-/* Get bus depth a device is located at */
-int ambapp_depth(struct ambapp_dev *dev)
-{
- int depth = 0;
-
- do {
- dev = ambapp_find_parent(dev);
- depth++;
- } while (dev);
-
- return depth - 1;
-}