summaryrefslogtreecommitdiff
path: root/src/xf86Elo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xf86Elo.c')
-rw-r--r--src/xf86Elo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c
index 4e9296e..2b09bdc 100644
--- a/src/xf86Elo.c
+++ b/src/xf86Elo.c
@@ -945,7 +945,16 @@ xf86EloInit(InputDriverPtr drv,
xf86Msg(X_ERROR, "%s: No Device specified in Elographics module config.\n",
pInfo->name);
return BadValue;
+ } else {
+ pInfo->fd = xf86OpenSerial(pInfo->options);
+ if (pInfo->fd < 0) {
+ xf86Msg(X_ERROR, "%s: Unable to open Elographics touchscreen device %s", pInfo->name, str);
+ return BadValue;
+ }
+ xf86CloseSerial(pInfo->fd);
+ pInfo->fd = -1;
}
+
priv->input_dev = strdup(str);
opt_model = xf86SetStrOption(pInfo->options, "Model", NULL);