summaryrefslogtreecommitdiffstats
path: root/rayer_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'rayer_spi.c')
-rw-r--r--rayer_spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rayer_spi.c b/rayer_spi.c
index 584a6a0..8e48e6e 100644
--- a/rayer_spi.c
+++ b/rayer_spi.c
@@ -168,7 +168,8 @@ int rayer_spi_init(void)
rayer_miso_bit = 4;
}
- get_io_perms();
+ if (rget_io_perms())
+ return 1;
/* Get the initial value before writing to any line. */
lpt_outbyte = INB(lpt_iobase);
OpenPOWER on IntegriCloud