Commit 197a1e96c8be5b6005145af3a4c0e45e2d651444

Authored by Aaro Koskinen
Committed by Dmitry Torokhov
1 parent ad5396ee32

Input: i8042-io - fix up region handling on MIPS

i8042_platform_init() skips reguest_region() on MIPS, but in
i8042_platform_exit() release_region() is still called. Fix this by
reserving the region also on MIPS.

The patch eliminates the following error message seen on MIPS:

[    2.112000] Trying to free nonexistent resource <0000000000000060-000000000000006f>

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/input/serio/i8042-io.h
... ... @@ -76,7 +76,7 @@
76 76 if (check_legacy_ioport(I8042_DATA_REG))
77 77 return -ENODEV;
78 78 #endif
79   -#if !defined(__sh__) && !defined(__alpha__) && !defined(__mips__)
  79 +#if !defined(__sh__) && !defined(__alpha__)
80 80 if (!request_region(I8042_DATA_REG, 16, "i8042"))
81 81 return -EBUSY;
82 82 #endif