Skip to content

Commit

Permalink
unicore32 i8042 upgrade and bugfix: adjust resource request region type
Browse files Browse the repository at this point in the history
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
  • Loading branch information
GuanXuetao committed Mar 17, 2011
1 parent 4ef2ec6 commit 4517366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/serio/i8042-unicore32io.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static inline void i8042_write_command(int val)

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;

i8042_reset = 1;
Expand All @@ -67,7 +67,7 @@ static inline int i8042_platform_init(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 */

0 comments on commit 4517366

Please sign in to comment.