summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--synaptics.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/synaptics.c b/synaptics.c
index 726ae01..32a26fe 100644
--- a/synaptics.c
+++ b/synaptics.c
@@ -524,13 +524,9 @@ DeviceOn(DeviceIntPtr dev)
DBG(3, ErrorF("Synaptics DeviceOn called\n"));
+ SetDeviceAndProtocol(local);
local->fd = xf86OpenSerial(local->options);
if (local->fd == -1) {
- xf86ReplaceStrOption(local->options, "Device", "");
- SetDeviceAndProtocol(local);
- local->fd = xf86OpenSerial(local->options);
- }
- if (local->fd == -1) {
xf86Msg(X_WARNING, "%s: cannot open input device\n", local->name);
return !Success;
}