diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-12-26 15:33:41 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-12-26 15:33:41 +0000 |
commit | 351bdfbda64297e8d1d54f569392c75d13ed0270 (patch) | |
tree | a6c3f7e2c06d2e34644e317d00b53ba1c7be0244 /sys/arch/sparc | |
parent | a9cab9c1304ff5f8b7f4e4d7878b337bb05fa5a6 (diff) |
Print the correct value as the chip revision.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/bt445.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/bt445.c b/sys/arch/sparc/dev/bt445.c index 33859e2c9d6..7e8a697bee3 100644 --- a/sys/arch/sparc/dev/bt445.c +++ b/sys/arch/sparc/dev/bt445.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bt445.c,v 1.1 2003/06/17 21:21:31 miod Exp $ */ +/* $OpenBSD: bt445.c,v 1.2 2008/12/26 15:33:40 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * @@ -91,8 +91,8 @@ btcham_attach(struct device *parent, struct device *self, void *args) sc->sc_regs[BT445_ADDRESS] = BT445_REGISTER_OFFSET(BT445_ID); id = sc->sc_regs[BT445_REGISTER_INDEX(BT445_ID)]; - sc->sc_regs[BT445_ADDRESS] = BT445_REGISTER_OFFSET(BT445_ID); - rev = sc->sc_regs[BT445_REGISTER_INDEX(BT445_ID)]; + sc->sc_regs[BT445_ADDRESS] = BT445_REGISTER_OFFSET(BT445_REVISION); + rev = sc->sc_regs[BT445_REGISTER_INDEX(BT445_REVISION)]; printf(": id 0x%x, revision 0x%x\n", id, rev); } |