astlpc: fix FILEIO definitions
It's MCTP_HAVE_FILEIO, not MCTP_WITHOUT_FILEIO.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Change-Id: I559c9fad166eae3bfcb39535a7db01701367e917
diff --git a/astlpc.c b/astlpc.c
index 45cab73..4e6485c 100644
--- a/astlpc.c
+++ b/astlpc.c
@@ -14,7 +14,7 @@
#include "libmctp-log.h"
#include "libmctp-astlpc.h"
-#ifndef MCTP_WITHOUT_FILEIO
+#ifdef MCTP_HAVE_FILEIO
#include <fcntl.h>
#include <sys/ioctl.h>
@@ -385,7 +385,7 @@
return astlpc;
}
-#ifndef MCTP_WITHOUT_FILEIO
+#ifdef MCTP_HAVE_FILEIO
static int mctp_astlpc_init_fileio_lpc(struct mctp_binding_astlpc *astlpc)
{
struct aspeed_lpc_ctrl_mapping map = {