From 412be6f456d61ae769e4206ec1c20fa75d73d61a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 23 Feb 2010 12:21:02 +0000 Subject: only match on Gdium; ok miod@ --- sys/arch/loongson/dev/gdiumiic.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys') 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 #include +#include +#include + #include #include @@ -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 -- cgit v1.2.3