Apply patches for the NC ... not really in the line of the merge but at least

its in the source tree for now.
This commit is contained in:
reinoud 2001-04-05 22:33:12 +00:00
parent ea213b7d88
commit 1b2003f235

View File

@ -1,4 +1,4 @@
/* $NetBSD: todclock.c,v 1.7 2000/02/19 00:27:16 tsutsui Exp $ */
/* $NetBSD: todclock.c,v 1.8 2001/04/05 22:33:12 reinoud Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@ -196,7 +196,11 @@ resettodr()
/* We need a todclock device and should always have one */
if (!todclock_sc)
#ifdef NC
return;
#else
panic("resettodr: No todclock device attached\n");
#endif /* NC */
/* Abort early if there is not actually an RTC write routine */
if (todclock_sc->sc_rtc_write == NULL)
@ -273,8 +277,10 @@ inittodr(base)
*/
/* We expect a todclock device */
#ifndef NC
if (!todclock_sc)
panic("inittodr: No todclock device attached\n");
#endif /* NC */
/* Use the suggested time as a fall back */
time.tv_sec = base;