diff options
author | nsouch <nsouch@FreeBSD.org> | 1998-11-04 22:07:24 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 1998-11-04 22:07:24 +0000 |
commit | 4da751f9dd4f4664d158c220fc9074437b0afaac (patch) | |
tree | 09f6b776c30b7290a86048a9c429a9a11017b673 /sys/dev | |
parent | 0b1ffe8fd67afc7707670d6603f72f76add183d0 (diff) | |
download | FreeBSD-src-4da751f9dd4f4664d158c220fc9074437b0afaac.zip FreeBSD-src-4da751f9dd4f4664d158c220fc9074437b0afaac.tar.gz |
Properly reset parent to get interface addr.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/iicbus/iicbb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/iicbus/iicbb.c b/sys/dev/iicbus/iicbb.c index f544d4b..81629bc 100644 --- a/sys/dev/iicbus/iicbb.c +++ b/sys/dev/iicbus/iicbb.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: iicbb.c,v 1.1 1998/10/31 11:31:07 nsouch Exp $ * */ @@ -127,14 +127,14 @@ iicbb_print_child(device_t bus, device_t dev) u_char oldaddr; /* retrieve the interface I2C address */ - error = IICBB_RESET(bus, IIC_FASTEST, 0, &oldaddr); + error = IICBB_RESET(device_get_parent(bus), IIC_FASTEST, 0, &oldaddr); if (error == IIC_ENOADDR) { printf(" on %s%d master-only", device_get_name(bus), device_get_unit(bus)); } else { /* restore the address */ - IICBB_RESET(bus, IIC_FASTEST, oldaddr, NULL); + IICBB_RESET(device_get_parent(bus), IIC_FASTEST, oldaddr, NULL); printf(" on %s%d addr 0x%x", device_get_name(bus), device_get_unit(bus), oldaddr & 0xff); |