diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-07-23 00:51:40 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-07-23 01:33:47 -0400 |
commit | 52ec7752b457311f10f5a8d16faa8ac2e684eb65 (patch) | |
tree | 431921f714d53c8ebcb089458aa3c049e3841def /arch/arm | |
parent | bd072111e7319d90a7b8127f91c2806b9a6f279e (diff) |
Input: pxa27x_keypad - remove extra clk_disable
clk_disable() in remove method is not needed since we already
have clk_disable in pxa27x_keypad_close().
Also make sure the driver uses resource_size() and helpers from
include/input/matrix_keypad.h
Tested-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxa27x_keypad.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxa27x_keypad.h b/arch/arm/mach-pxa/include/mach/pxa27x_keypad.h index d5a48a96dea7..63e8965ad85d 100644 --- a/arch/arm/mach-pxa/include/mach/pxa27x_keypad.h +++ b/arch/arm/mach-pxa/include/mach/pxa27x_keypad.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __ASM_ARCH_PXA27x_KEYPAD_H | 2 | #define __ASM_ARCH_PXA27x_KEYPAD_H |
3 | 3 | ||
4 | #include <linux/input.h> | 4 | #include <linux/input.h> |
5 | #include <linux/input/matrix_keypad.h> | ||
5 | 6 | ||
6 | #define MAX_MATRIX_KEY_ROWS (8) | 7 | #define MAX_MATRIX_KEY_ROWS (8) |
7 | #define MAX_MATRIX_KEY_COLS (8) | 8 | #define MAX_MATRIX_KEY_COLS (8) |
@@ -51,8 +52,6 @@ struct pxa27x_keypad_platform_data { | |||
51 | unsigned int debounce_interval; | 52 | unsigned int debounce_interval; |
52 | }; | 53 | }; |
53 | 54 | ||
54 | #define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val)) | ||
55 | |||
56 | extern void pxa_set_keypad_info(struct pxa27x_keypad_platform_data *info); | 55 | extern void pxa_set_keypad_info(struct pxa27x_keypad_platform_data *info); |
57 | 56 | ||
58 | #endif /* __ASM_ARCH_PXA27x_KEYPAD_H */ | 57 | #endif /* __ASM_ARCH_PXA27x_KEYPAD_H */ |