summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-02-14 20:54:46 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-02-14 20:54:46 +0000
commit247e7e9f046482abd2dec7fe728c5f27ce038d0a (patch)
tree37812b18f10f5363c2fb2a30cd01761b48cfe077 /sys/arch
parent3facfd77cc3a9dae3013339d7c382fe21cfbe603 (diff)
Knock out "deq" and "tas3004" i2c nodes.
ok drahn@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/dev/maci2c.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/maci2c.c b/sys/arch/macppc/dev/maci2c.c
index 4454fdb20bd..cf1ee4a22ff 100644
--- a/sys/arch/macppc/dev/maci2c.c
+++ b/sys/arch/macppc/dev/maci2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: maci2c.c,v 1.8 2006/02/08 23:15:58 dlg Exp $ */
+/* $OpenBSD: maci2c.c,v 1.9 2006/02/14 20:54:45 kettenis Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -20,6 +20,7 @@
#include <sys/systm.h>
#include <sys/device.h>
+#define _I2C_PRIVATE
#include <dev/i2c/i2cvar.h>
#include <dev/ofw/openfirm.h>
@@ -29,7 +30,6 @@ void
maciic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux)
{
int iba_node = *(int *)aux;
- extern int iic_print(void *, const char *);
struct i2c_attach_args ia;
char name[32];
u_int32_t reg;
@@ -53,6 +53,11 @@ maciic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux)
continue;
ia.ia_name = name;
}
+ /* XXX We should write a real driver for these instead
+ of reaching over from the sound driver that sits on
+ the i2s port. For now hide them. */
+ if (strcmp(name, "deq") == 0 || strcmp(name, "tas3004") == 0)
+ continue;
if (ia.ia_name)
config_found(self, &ia, iic_print);
}