]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
Patch from Danny Kukawka
authorJulien Valroff <julien@kirya.net>
Fri, 27 Feb 2009 17:56:51 +0000 (17:56 +0000)
committerJulien Valroff <julien@kirya.net>
Fri, 27 Feb 2009 17:56:51 +0000 (17:56 +0000)
This patch fixes build the driver on older kernel versions. There is a wrong
named variable used, which cause a make error about a uninitialised
variable.

nbsmi.c

diff --git a/nbsmi.c b/nbsmi.c
index 4bf71431b0f415d0ddc0a4925688be5bec0466e6..8ce10b98015e38acc04e079a81d2d6e9c35d3f5b 100644 (file)
--- a/nbsmi.c
+++ b/nbsmi.c
@@ -379,7 +379,7 @@ static struct input_handle *hook_connect(struct input_handler *handler,
        } 
        
 #else
-       status=input_open_device(handle);
+       error = input_open_device(handle);
        if (error==0) dprintk("Input device opened\n");
        else { 
                dprintk("opening input device failed\n");