diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index ffa85f031e6b..724673873004 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.42 2001/09/26 20:53:12 eeh Exp $ */ +/* $NetBSD: clock.c,v 1.43 2001/10/02 04:06:26 eeh Exp $ */ /* * Copyright (c) 1992, 1993 @@ -451,9 +451,10 @@ rtc_read_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg) return (bus_space_read_1(bt, bh, RTC_DATA)); } void -rtc_write_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg, u_int8_t val) { +rtc_write_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg, u_int8_t val) +{ bus_space_write_1(bt, bh, RTC_ADDR, reg); - bus_space_write_1(bt, bh, RTC_DATA, reg); + bus_space_write_1(bt, bh, RTC_DATA, val); } /* ARGSUSED */