提交 4517366d 编写于 作者: G GuanXuetao

unicore32 i8042 upgrade and bugfix: adjust resource request region type

Signed-off-by: NGuan Xuetao <gxt@mprc.pku.edu.cn>
上级 4ef2ec63
...@@ -58,7 +58,7 @@ static inline void i8042_write_command(int val) ...@@ -58,7 +58,7 @@ static inline void i8042_write_command(int val)
static inline int i8042_platform_init(void) static inline int i8042_platform_init(void)
{ {
if (!request_region(I8042_REGION_START, I8042_REGION_SIZE, "i8042")) if (!request_mem_region(I8042_REGION_START, I8042_REGION_SIZE, "i8042"))
return -EBUSY; return -EBUSY;
i8042_reset = 1; i8042_reset = 1;
...@@ -67,7 +67,7 @@ static inline int i8042_platform_init(void) ...@@ -67,7 +67,7 @@ static inline int i8042_platform_init(void)
static inline void i8042_platform_exit(void) static inline void i8042_platform_exit(void)
{ {
release_region(I8042_REGION_START, I8042_REGION_SIZE); release_mem_region(I8042_REGION_START, I8042_REGION_SIZE);
} }
#endif /* _I8042_UNICORE32_H */ #endif /* _I8042_UNICORE32_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册