Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 197a1e96 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Dmitry Torokhov
Browse files

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: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent ad5396ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@ static inline int i8042_platform_init(void)
	if (check_legacy_ioport(I8042_DATA_REG))
	if (check_legacy_ioport(I8042_DATA_REG))
		return -ENODEV;
		return -ENODEV;
#endif
#endif
#if !defined(__sh__) && !defined(__alpha__) && !defined(__mips__)
#if !defined(__sh__) && !defined(__alpha__)
	if (!request_region(I8042_DATA_REG, 16, "i8042"))
	if (!request_region(I8042_DATA_REG, 16, "i8042"))
		return -EBUSY;
		return -EBUSY;
#endif
#endif