diff --git a/src/fe/moduleLoadIop.c b/src/fe/moduleLoadIop.c
index 312ef3ebf323b8875d1518c6f542a9c34d07d0d1..58c43b1e78d08615f6926bf0d863e224fc35c02b 100644
--- a/src/fe/moduleLoadIop.c
+++ b/src/fe/moduleLoadIop.c
@@ -234,9 +234,9 @@ printk("Waiting for EPICS BURT Restore = %d\n", pLocalEpics->epicsInput.burtRest
 }
 
 void rt_iop_cleanup(void) {
+#ifndef NO_CPU_SHUTDOWN
 	extern int __cpuinit cpu_up(unsigned int cpu);
 
-#ifndef NO_CPU_SHUTDOWN
 	// Unset the code callback
         set_fe_code_idle(0, CPUID);
 #endif