From dbed7865d34d407814bc59dae06e93be3a3fcf95 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 22 Oct 2019 19:08:59 +0200 Subject: mb/*/*/smihandler: Remove bogus mainboard_io_trap_handler These mainboard_io_trap_handler functions do nothing compared to a weak mainboard_io_trap_handler in src/cpu/x86/smm/. Change-Id: I73ebcc6c3f604a075a946503d51881ccc6820dac Signed-off-by: Peter Lemenkov Reviewed-on: https://review.coreboot.org/c/coreboot/+/36245 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/apple/macbook21/smihandler.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/mainboard/apple/macbook21') diff --git a/src/mainboard/apple/macbook21/smihandler.c b/src/mainboard/apple/macbook21/smihandler.c index adb48db6dc..6e8601b434 100644 --- a/src/mainboard/apple/macbook21/smihandler.c +++ b/src/mainboard/apple/macbook21/smihandler.c @@ -21,18 +21,6 @@ #define GPE_EC_SCI 12 -int mainboard_io_trap_handler(int smif) -{ - switch (smif) { - default: - return 0; - } - - /* On success, the IO Trap Handler returns 1 - * On failure, the IO Trap Handler returns a value != 1 */ - return 1; -} - int mainboard_smi_apmc(u8 data) { switch (data) { -- cgit v1.2.3