diff --git a/board/freescale/corenet_ds/corenet_ds.c b/board/freescale/corenet_ds/corenet_ds.c
index a03fdfda2cb07270abba1e4f15a15578b99d7e0a..b1eecc495d8e1036e4956dd150e79a3a80ad3256 100644
--- a/board/freescale/corenet_ds/corenet_ds.c
+++ b/board/freescale/corenet_ds/corenet_ds.c
@@ -34,8 +34,6 @@
 #include <asm/fsl_liodn.h>
 #include <fm_eth.h>
 
-extern void pci_of_setup(void *blob, bd_t *bd);
-
 #include "../common/ngpixis.h"
 #include "corenet_ds.h"
 
diff --git a/board/freescale/corenet_ds/corenet_ds.h b/board/freescale/corenet_ds/corenet_ds.h
index 425c6aa7a38bde97e156b38dec0a9ad5ee541d08..9cdd47d1c81d7cb35e96df06827e01665916d002 100644
--- a/board/freescale/corenet_ds/corenet_ds.h
+++ b/board/freescale/corenet_ds/corenet_ds.h
@@ -21,5 +21,6 @@
 #define __CORENET_DS_H__
 
 void fdt_fixup_board_enet(void *blob);
+void pci_of_setup(void *blob, bd_t *bd);
 
 #endif