summaryrefslogtreecommitdiff
path: root/hw/xfree86/parser
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-08-25 12:43:17 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-08-25 12:43:17 +0300
commitd6f36bd28009881ef7f7a20cdadb3808d808ed97 (patch)
treebee17a87830c0d92eea45db6022683a03c500bb5 /hw/xfree86/parser
parent7c4167f0d6b33c9c602b04fcfd246fd3aeddd709 (diff)
xfree86/parser: use 'kbd' driver when 'keyboard' specified
Now that we've completely ditched the old driver, we should probably make a best-effort attempt to keep configs working.
Diffstat (limited to 'hw/xfree86/parser')
-rw-r--r--hw/xfree86/parser/Input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xfree86/parser/Input.c b/hw/xfree86/parser/Input.c
index 3e2186a9d..3d9801968 100644
--- a/hw/xfree86/parser/Input.c
+++ b/hw/xfree86/parser/Input.c
@@ -102,7 +102,10 @@ xf86parseInputSection (void)
case DRIVER:
if (xf86getSubToken (&(ptr->inp_comment)) != STRING)
Error (QUOTE_MSG, "Driver");
- ptr->inp_driver = val.str;
+ if (strcmp(val.str, "keyboard") == 0)
+ ptr->inp_driver = "kbd";
+ else
+ ptr->inp_driver = val.str;
break;
case OPTION:
ptr->inp_option_lst = xf86parseOption(ptr->inp_option_lst);