From 351bdfbda64297e8d1d54f569392c75d13ed0270 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 26 Dec 2008 15:33:41 +0000 Subject: Print the correct value as the chip revision. --- sys/arch/sparc/dev/bt445.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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); } -- cgit v1.2.3