libpayload: Remove bitfield use from EHCI data structures
[coreboot.git] / payloads / coreinfo / cpuinfo_module.c
index ace87fec4556bed9f535be4cc77521bc177a79e3..7b6a3f1f42466fbb2f0122d32233b75e1a98b8dd 100644 (file)
@@ -21,6 +21,8 @@
  */
 
 #include "coreinfo.h"
+
+#ifdef CONFIG_MODULE_CPUINFO
 #include <arch/rdtsc.h>
 
 #define VENDOR_INTEL 0x756e6547
@@ -267,5 +269,11 @@ struct coreinfo_module cpuinfo_module = {
        .name = "CPU Info",
        .init = cpuinfo_module_init,
        .redraw = cpuinfo_module_redraw,
-       .handle = NULL,
 };
+
+#else
+
+struct coreinfo_module cpuinfo_module = {
+};
+
+#endif