diff --git a/efi_runtime/efi_runtime.c b/efi_runtime/efi_runtime.c
index 7d99fbc..ccf4eff 100644
--- a/efi_runtime/efi_runtime.c
+++ b/efi_runtime/efi_runtime.c
@@ -304,6 +304,9 @@ static int __init efi_runtime_init(void)
 
 	printk(KERN_INFO "EFI_RUNTIME Driver v%s\n", EFI_FWTS_EFI_VERSION);
 
+	if (!efi_enabled)
+		return -ENODEV;
+
 	ret = misc_register(&efi_runtime_dev);
 	if (ret) {
 		printk(KERN_ERR "efi_runtime: can't misc_register on minor=%d\n",
