diff options
author | andrew <andrew@FreeBSD.org> | 2016-01-22 13:09:43 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-01-22 13:09:43 +0000 |
commit | f38c96c97d072c9ed3a7551b5fa391f0f2d42644 (patch) | |
tree | 0252381dfc0fe5004390677e4e33d00e00c36e03 | |
parent | 359ecb5b966a37c8be8db79e9c9533775bb3f774 (diff) | |
download | FreeBSD-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.h | 2 |
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); |