From 2094130d5230dbbc8c4522e3ccc9023b66b5648d Mon Sep 17 00:00:00 2001 From: njl Date: Sun, 24 Jun 2007 20:35:59 +0000 Subject: The viapm module build had what appear to be some debugging CFLAGS left around to force the IO port to a fixed address. They were only turned on in the module build and were present since the original import. This breaks soft power-off on the Asus A7V since it reprograms the SMBus base address to a different one than the BIOS expects. A similar issue was found in the alpm(4) module build. PR: kern/113986, i386/97468 MFC after: 3 days Approved by: re --- sys/modules/i2c/controllers/alpm/Makefile | 1 - sys/modules/i2c/controllers/viapm/Makefile | 1 - 2 files changed, 2 deletions(-) (limited to 'sys/modules') diff --git a/sys/modules/i2c/controllers/alpm/Makefile b/sys/modules/i2c/controllers/alpm/Makefile index 5429b9c..885b983 100644 --- a/sys/modules/i2c/controllers/alpm/Makefile +++ b/sys/modules/i2c/controllers/alpm/Makefile @@ -2,7 +2,6 @@ .PATH: ${.CURDIR}/../../../../pci KMOD = alpm -CFLAGS += -DALPM_SMBIO_BASE_ADDR=0xbc00 SRCS = device_if.h bus_if.h iicbus_if.h smbus_if.h pci_if.h \ alpm.c diff --git a/sys/modules/i2c/controllers/viapm/Makefile b/sys/modules/i2c/controllers/viapm/Makefile index 03c0738..3710030 100644 --- a/sys/modules/i2c/controllers/viapm/Makefile +++ b/sys/modules/i2c/controllers/viapm/Makefile @@ -4,6 +4,5 @@ KMOD = viapm SRCS = device_if.h bus_if.h iicbb_if.h isa_if.h pci_if.h smbus_if.h \ opt_isa.h viapm.c -CFLAGS += -DVIAPM_BASE_ADDR=0x6000 .include -- cgit v1.1