summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-01-22 13:09:43 +0000
committerandrew <andrew@FreeBSD.org>2016-01-22 13:09:43 +0000
commitf38c96c97d072c9ed3a7551b5fa391f0f2d42644 (patch)
tree0252381dfc0fe5004390677e4e33d00e00c36e03
parent359ecb5b966a37c8be8db79e9c9533775bb3f774 (diff)
downloadFreeBSD-src-f38c96c97d072c9ed3a7551b5fa391f0f2d42644.zip
FreeBSD-src-f38c96c97d072c9ed3a7551b5fa391f0f2d42644.tar.gz
Only define fdt_pic_table on arm, and when not using intrng as this is
the only place that uses it.
-rw-r--r--sys/dev/fdt/fdt_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/fdt/fdt_common.h b/sys/dev/fdt/fdt_common.h
index 09224d5..3eb33c1 100644
--- a/sys/dev/fdt/fdt_common.h
+++ b/sys/dev/fdt/fdt_common.h
@@ -45,8 +45,10 @@ struct fdt_sense_level {
enum intr_polarity pol;
};
+#if defined(__arm__) && !defined(ARM_INTRNG)
typedef int (*fdt_pic_decode_t)(phandle_t, pcell_t *, int *, int *, int *);
extern fdt_pic_decode_t fdt_pic_table[];
+#endif
#if defined(__arm__) || defined(__powerpc__)
typedef void (*fdt_fixup_t)(phandle_t);
OpenPOWER on IntegriCloud