From 100aaa0115b0512bc6f11b33dd8594168d7fbea8 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 22:44:08 +0100 Subject: [PATCH] Fixed the initialization of GPIO ports at the SMC FDC37C93x family of Super I/O chips. --- src/sio_fdc37c93x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sio_fdc37c93x.c b/src/sio_fdc37c93x.c index e93ffea54..ef3380ee4 100644 --- a/src/sio_fdc37c93x.c +++ b/src/sio_fdc37c93x.c @@ -203,7 +203,7 @@ static void fdc37c93x_gpio_handler(fdc37c93x_t *dev) break; } dev->gpio_base = ld_port; - if ((ld_port >= 0x0100) && (ld_port <= 0x0FFE)) + if (ld_port > 0x0000) io_sethandler(dev->gpio_base, 0x0002, fdc37c93x_gpio_read, NULL, NULL, fdc37c93x_gpio_write, NULL, NULL, dev); }