diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-07 00:49:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-07 00:49:07 +0000 |
commit | 3920e4a2c7f638130fcc7929be1586b1e61cb8c1 (patch) | |
tree | aaa0eb25a4abdd41e64be78c490cc68caef49b33 /sys/arch/macppc | |
parent | 5b255853c518252185365b80d1fa4f9b4be7db2e (diff) |
In uni_n_config(), only return a base address if a base address was found.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/dev/uni_n.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/uni_n.c b/sys/arch/macppc/dev/uni_n.c index 4d3e44efac5..5802866ec4f 100644 --- a/sys/arch/macppc/dev/uni_n.c +++ b/sys/arch/macppc/dev/uni_n.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uni_n.c,v 1.1 2001/09/01 15:50:00 drahn Exp $ */ +/* $OpenBSD: uni_n.c,v 1.2 2001/12/07 00:49:06 miod Exp $ */ /* * Copyright (c) 1998-2001 Dale Rahn. All rights reserved. @@ -110,8 +110,8 @@ uni_n_config(int handle) baseaddr = mapiodev(address, NBPG); ctladdr = (void*)(baseaddr + 0x20); *ctladdr |= 0x02; + return baseaddr; } - return baseaddr; } } return 0; |