From b52809bf5c9441ce31c5526dd552f4e7c89df5ba Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 3 Aug 2010 02:49:13 +0200 Subject: [PATCH] Fix buildkernel with 'options CPU_GEODE' but without 'device gpio'. --- sys/platform/pc32/i386/cs5536.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/platform/pc32/i386/cs5536.c b/sys/platform/pc32/i386/cs5536.c index 8125f410b4..6c00695fa6 100644 --- a/sys/platform/pc32/i386/cs5536.c +++ b/sys/platform/pc32/i386/cs5536.c @@ -392,7 +392,9 @@ cs5536_attach(device_t self) #define BIOS_OEM_MAXLEN 80 static u_char bios_oem[BIOS_OEM_MAXLEN] = "\0"; static int attached = 0; +#if NGPIO > 0 int i; +#endif #if 0 /* Watchdog stuff */ EVENTHANDLER_REGISTER(watchdog_list, cs5536_watchdog, NULL, 0); #endif -- 2.41.0