From ba4446ebd3a9ab25136e9a7e983952ce20f53b5b Mon Sep 17 00:00:00 2001 From: Roman Tereshonkov Date: Thu, 26 Jun 2008 17:17:58 +0300 Subject: [PATCH] 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 --- drivers/input/keyboard/omap-twl4030keypad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); -- 2.41.0