summaryrefslogtreecommitdiff
path: root/drivers/misc/ocxl/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/ocxl/main.c')
-rw-r--r--drivers/misc/ocxl/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/ocxl/main.c b/drivers/misc/ocxl/main.c
index 7210d9e059be..ef73cf35dda2 100644
--- a/drivers/misc/ocxl/main.c
+++ b/drivers/misc/ocxl/main.c
@@ -2,12 +2,16 @@
// Copyright 2017 IBM Corp.
#include <linux/module.h>
#include <linux/pci.h>
+#include <asm/mmu.h>
#include "ocxl_internal.h"
static int __init init_ocxl(void)
{
int rc = 0;
+ if (!tlbie_capable)
+ return -EINVAL;
+
rc = ocxl_file_init();
if (rc)
return rc;