diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-20 00:09:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-20 00:09:37 +0000 |
commit | f9c36f47833e42d22aa9def47c86f858b0d9da0b (patch) | |
tree | 8c80c81b2730dad6e89e45e24db4375594196a27 /sys/arch | |
parent | ed376da91d7820af897fded54a8ba044b824f271 (diff) |
Make sure we can only match once for internal video.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mac68k/dev/grf_iv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/mac68k/dev/grf_iv.c b/sys/arch/mac68k/dev/grf_iv.c index 9cd06066807..1430c726424 100644 --- a/sys/arch/mac68k/dev/grf_iv.c +++ b/sys/arch/mac68k/dev/grf_iv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf_iv.c,v 1.35 2006/01/10 21:19:14 miod Exp $ */ +/* $OpenBSD: grf_iv.c,v 1.36 2006/01/20 00:09:36 miod Exp $ */ /* $NetBSD: grf_iv.c,v 1.17 1997/02/20 00:23:27 scottr Exp $ */ /* @@ -106,9 +106,12 @@ macfb_obio_match(struct device *parent, void *vcf, void *aux) { struct obio_attach_args *oa = (struct obio_attach_args *)aux; bus_space_handle_t bsh; - int found; + static int found; u_int base; + if (found != 0) + return (0); + found = 1; switch (current_mac_model->class) { |