]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Remove double MODULE_ALIAS declaration.
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Thu, 26 Jun 2008 14:17:58 +0000 (17:17 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Aug 2008 09:14:39 +0000 (12:14 +0300)
Only once MODULE_ALIAS declaration is enough.
Columns are counted from 0 to n_cols - 1.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/omap-twl4030keypad.c

index 20aeb3c611c33dde7905b39cdfb197271af6d965..68c5b8e5112dc5eed5b5dc873ce30aa60a46e56b 100644 (file)
@@ -158,7 +158,7 @@ static void twl4030_kp_scan(int release_all)
                if (!changed)
                        continue;
 
-               for (col = 0; col < n_cols + 1; col++) {
+               for (col = 0; col < n_cols; col++) {
                        int key;
 
                        if (!(changed & (1 << col)))
@@ -373,4 +373,3 @@ MODULE_ALIAS("platform:omap_twl4030keypad");
 MODULE_AUTHOR("Texas Instruments");
 MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS("platform:omap_twl4030keypad");