diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-01 22:50:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-01 22:50:30 +0000 |
commit | 4dedca54612c0cf67038d99e051929d85030adbf (patch) | |
tree | 88f91e1767205c5214d19701fade3508c46f9166 /sys/arch | |
parent | d12245b23d33f6a68f6a862049eb520b7249f63f (diff) |
Revert previous commit, this causes sti1 probe to hang on some models.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/dev/sti_sgc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c index 926dc87f929..8b8bbd5abd9 100644 --- a/sys/arch/hppa/dev/sti_sgc.c +++ b/sys/arch/hppa/dev/sti_sgc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sti_sgc.c,v 1.30 2006/03/15 20:04:36 miod Exp $ */ +/* $OpenBSD: sti_sgc.c,v 1.31 2006/04/01 22:50:29 miod Exp $ */ /* * Copyright (c) 2000-2003 Michael Shalayeff @@ -121,7 +121,7 @@ sti_sgc_probe(parent, match, aux) int rv = 0, romunmapped = 0; /* due to the graphic nature of this program do probe only one */ - if (sti_cd.cd_ndevs != 0) + if (cf->cf_unit > sti_cd.cd_ndevs) return (0); if (ca->ca_type.iodc_type != HPPA_TYPE_FIO) |