m68k: only generate FPU instructions if CONFIG_FPU enabled
[linux-2.6-block.git] / arch / m68k / kernel / setup_mm.c
index 13f4640bb84fb437609e732e288bcc6daae20351..adbb80698da2c6591114862f6b5dcce40a84dee6 100644 (file)
@@ -245,7 +245,7 @@ void __init setup_arch(char **cmdline_p)
         * We should really do our own FPU check at startup.
         * [what do we do with buggy 68LC040s? if we have problems
         *  with them, we should add a test to check_bugs() below] */
-#ifndef CONFIG_M68KFPU_EMU_ONLY
+#if defined(CONFIG_FPU) && !defined(CONFIG_M68KFPU_EMU_ONLY)
        /* clear the fpu if we have one */
        if (m68k_fputype & (FPU_68881|FPU_68882|FPU_68040|FPU_68060|FPU_COLDFIRE)) {
                volatile int zero = 0;