Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Aaro Koskinen and committed by
Dmitry Torokhov
197a1e96 ad5396ee

+1 -1
+1 -1
drivers/input/serio/i8042-io.h
··· 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