diff options
-rw-r--r-- | src/xf86MuTouch.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c index 1d56efd..fd0b930 100644 --- a/src/xf86MuTouch.c +++ b/src/xf86MuTouch.c @@ -1097,6 +1097,15 @@ xf86MuTInit(InputDriverPtr drv, pInfo->name); rc = BadValue; goto init_err; + } else { + pInfo->fd = xf86OpenSerial(pInfo->options); + if (pInfo->fd < 0) { + xf86Msg(X_ERROR, "%s: Unable to open MuTouch touchscreen device '%s'\n", pInfo->name, str); + rc = BadValue; + goto init_err; + } + close(pInfo->fd); + pInfo->fd = -1; } priv->input_dev = strdup(str); |