20 #include <linux/types.h>
21 #include <linux/slab.h>
24 #include <linux/input.h>
33 static struct input_dev *virt_keyboard;
39 virt_keyboard = input_allocate_device();
44 virt_keyboard->name =
"Speakup";
46 virt_keyboard->phys =
"speakup/input0";
47 virt_keyboard->dev.parent =
NULL;
52 err = input_register_device(virt_keyboard);
54 input_free_device(virt_keyboard);
63 if (virt_keyboard !=
NULL) {
64 input_unregister_device(virt_keyboard);