diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig
index 3dcdb681c4e43c3d48713ddc16bcada78c0e65ee..5edd155f19114a28da828e64953b38dbc53be297 100644
--- a/drivers/counter/Kconfig
+++ b/drivers/counter/Kconfig
@@ -14,7 +14,7 @@ if COUNTER
 
 config 104_QUAD_8
 	tristate "ACCES 104-QUAD-8 driver"
-	depends on PC104 && X86
+	depends on (PC104 && X86) || COMPILE_TEST
 	select ISA_BUS_API
 	help
 	  Say yes here to build support for the ACCES 104-QUAD-8 quadrature