Commit 4517366d870b89d6fb8c0c90deb6c73d975908af
1 parent
4ef2ec63cc
Exists in
master
and in
7 other branches
unicore32 i8042 upgrade and bugfix: adjust resource request region type
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/input/serio/i8042-unicore32io.h
... | ... | @@ -58,7 +58,7 @@ |
58 | 58 | |
59 | 59 | static inline int i8042_platform_init(void) |
60 | 60 | { |
61 | - if (!request_region(I8042_REGION_START, I8042_REGION_SIZE, "i8042")) | |
61 | + if (!request_mem_region(I8042_REGION_START, I8042_REGION_SIZE, "i8042")) | |
62 | 62 | return -EBUSY; |
63 | 63 | |
64 | 64 | i8042_reset = 1; |
... | ... | @@ -67,7 +67,7 @@ |
67 | 67 | |
68 | 68 | static inline void i8042_platform_exit(void) |
69 | 69 | { |
70 | - release_region(I8042_REGION_START, I8042_REGION_SIZE); | |
70 | + release_mem_region(I8042_REGION_START, I8042_REGION_SIZE); | |
71 | 71 | } |
72 | 72 | |
73 | 73 | #endif /* _I8042_UNICORE32_H */ |