From: Roman Tereshonkov Date: Thu, 26 Jun 2008 14:17:58 +0000 (+0300) Subject: Remove double MODULE_ALIAS declaration. X-Git-Tag: v2.6.26-omap1~42 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ba4446ebd3a9ab25136e9a7e983952ce20f53b5b;p=linux-2.6-omap-h63xx.git Remove double MODULE_ALIAS declaration. Only once MODULE_ALIAS declaration is enough. Columns are counted from 0 to n_cols - 1. Signed-off-by: Roman Tereshonkov Signed-off-by: Tony Lindgren --- diff --git a/drivers/input/keyboard/omap-twl4030keypad.c b/drivers/input/keyboard/omap-twl4030keypad.c index 20aeb3c611c..68c5b8e5112 100644 --- a/drivers/input/keyboard/omap-twl4030keypad.c +++ b/drivers/input/keyboard/omap-twl4030keypad.c @@ -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");