diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-23 12:21:02 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-23 12:21:02 +0000 |
commit | 412be6f456d61ae769e4206ec1c20fa75d73d61a (patch) | |
tree | b304c512ca6b487dd11b604d91ae4afb97aa8a68 /sys/arch/loongson/dev | |
parent | 839e2716ee9d3f847deebdd072e78fbbf8644ecf (diff) |
only match on Gdium; ok miod@
Diffstat (limited to 'sys/arch/loongson/dev')
-rw-r--r-- | sys/arch/loongson/dev/gdiumiic.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/loongson/dev/gdiumiic.c b/sys/arch/loongson/dev/gdiumiic.c index c1607e31d2a..db0ca7d78eb 100644 --- a/sys/arch/loongson/dev/gdiumiic.c +++ b/sys/arch/loongson/dev/gdiumiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdiumiic.c,v 1.2 2010/02/19 00:21:45 miod Exp $ */ +/* $OpenBSD: gdiumiic.c,v 1.3 2010/02/23 12:21:01 otto Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. @@ -30,6 +30,9 @@ #include <sys/gpio.h> #include <sys/rwlock.h> +#include <machine/autoconf.h> +#include <mips64/archtype.h> + #include <dev/gpio/gpiovar.h> #include <dev/i2c/i2cvar.h> @@ -133,7 +136,8 @@ gdiumiic_match(struct device *parent, void *match, void *aux) if (ga->ga_offset == -1 || gdiumiic_bustype(ga) < 0) return 0; - return (strcmp(cf->cf_driver->cd_name, "gdiumiic") == 0); + return (sys_platform->system_type == LOONGSON_GDIUM && + strcmp(cf->cf_driver->cd_name, "gdiumiic") == 0); } void |