The problem is that i2c.c can be built either because some other driver needs "i2cbus" or because an instance of the "iic" driver is requested. Only in the latter case does CFDRIVER_DECL get added to ioconf.c. I think I'll have to split out the driver specific stuff into a separate file to fix this properly.

-----Original Message----- From: Marc Balmer Sent: Monday, October 03, 2011 3:28 AM Newsgroups: gmane.os.netbsd.devel.cvs.full
To: source-changes-full-qavaossjccednm+yrof...@public.gmane.org
Subject: CVS commit: src/sys/arch/amd64/conf

Module Name: src
Committed By: mbalmer
Date: Mon Oct  3 07:28:14 UTC 2011

Modified Files:
src/sys/arch/amd64/conf: XEN3_DOM0

Log Message:
Enable an iic(4) device to prevent a linker warning.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/amd64/conf/XEN3_DOM0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.







Modified files:

Index: src/sys/arch/amd64/conf/XEN3_DOM0
diff -u src/sys/arch/amd64/conf/XEN3_DOM0:1.71 src/sys/arch/amd64/conf/XEN3_DOM0:1.72
--- src/sys/arch/amd64/conf/XEN3_DOM0:1.71 Thu Aug 18 20:55:21 2011
+++ src/sys/arch/amd64/conf/XEN3_DOM0 Mon Oct  3 07:28:14 2011
@@ -1,4 +1,4 @@
-# $NetBSD: XEN3_DOM0,v 1.71 2011/08/18 20:55:21 jakllsch Exp $
+# $NetBSD: XEN3_DOM0,v 1.72 2011/10/03 07:28:14 mbalmer Exp $

include "arch/amd64/conf/std.xen"

@@ -297,7 +297,7 @@ amdtemp* at pchb? # AMD CPU Temperatur

# AMD 768 and 8111 power/ACPI controllers
amdpm* at pci? dev ? function ? # RNG and SMBus 1.0 interface
-#iic* at amdpm? # sensors below are on this bus
+iic* at amdpm? # sensors below are on this bus

# Thermal monitor and fan controller
#dbcool* at iic? addr 0x2C # Unknown other motherboard(s)

Reply via email to