]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 14 Oct 2024 11:25:42 +0000 (13:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:02 +0000 (13:53 +0100)
commit1d863f4e23aa718ba4de49f8b00a5928fb14d1a0
tree5ecd0b5afa084bdaf10a2d7feb72259bc753f3b9
parent55c28e216bdab3fef2dde7567310c19139ff31c2
watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240

[ Upstream commit d4d3125a3452a54acca69050be67b87ee2900e77 ]

Both drivers use I/O port accesses without declaring a dependency on
CONFIG_HAS_IOPORT. For sbc8360_wdt this causes a compile error on UML
once inb()/outb() helpers become conditional.

For sbc7240_wdt this causes no such errors with UML because this driver
depends on both x86_32 and !UML. Nevertheless add HAS_IOPORT as
a dependency for both drivers to be explicit and drop the !UML
dependency for sbc7240_wdt as it is now redundant since UML implies no
HAS_IOPORT.

Fixes: 52df67b6b313 ("watchdog: add HAS_IOPORT dependencies")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/Kconfig