Commit 51a0bf48 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] interface_register-001

From:  Michael Still <mikal@stillhq.com>
parent 2b2293f7
...@@ -385,7 +385,12 @@ static struct device_interface tsdev_intf = { ...@@ -385,7 +385,12 @@ static struct device_interface tsdev_intf = {
static int __init tsdev_init(void) static int __init tsdev_init(void)
{ {
interface_register(&tsdev_intf); int retval;
retval = interface_register(&tsdev_intf);
if(retval < 0)
return retval;
input_register_handler(&tsdev_handler); input_register_handler(&tsdev_handler);
printk(KERN_INFO "ts: Compaq touchscreen protocol output\n"); printk(KERN_INFO "ts: Compaq touchscreen protocol output\n");
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment