Move todr_attach(9) calls from each MD attachment to MI intersil7170_attach().
This commit is contained in:
parent
05517e38f5
commit
fba7c262a8
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: oclock.c,v 1.14 2006/10/04 15:04:43 tsutsui Exp $ */
|
/* $NetBSD: oclock.c,v 1.15 2008/01/10 16:04:57 tsutsui Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||||
@ -44,7 +44,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: oclock.c,v 1.14 2006/10/04 15:04:43 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: oclock.c,v 1.15 2008/01/10 16:04:57 tsutsui Exp $");
|
||||||
|
|
||||||
#include "opt_sparc_arch.h"
|
#include "opt_sparc_arch.h"
|
||||||
|
|
||||||
@ -192,7 +192,6 @@ oclockattach(struct device *parent, struct device *self, void *aux)
|
|||||||
intersil7170_attach(sc);
|
intersil7170_attach(sc);
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
todr_attach(&sc->sc_handle);
|
|
||||||
#endif /* SUN4 */
|
#endif /* SUN4 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: clock.c,v 1.57 2006/10/04 15:14:49 tsutsui Exp $ */
|
/* $NetBSD: clock.c,v 1.58 2008/01/10 16:04:57 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1990, 1993
|
* Copyright (c) 1982, 1990, 1993
|
||||||
@ -83,7 +83,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.57 2006/10/04 15:14:49 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.58 2008/01/10 16:04:57 tsutsui Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -184,8 +184,6 @@ oclock_attach(struct device *parent, struct device *self, void *aux)
|
|||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
todr_attach(&sc->sc_handle);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Can not hook up the ISR until cpu_initclocks()
|
* Can not hook up the ISR until cpu_initclocks()
|
||||||
* because hardclock is not ready until then.
|
* because hardclock is not ready until then.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: clock.c,v 1.33 2008/01/10 15:31:27 tsutsui Exp $ */
|
/* $NetBSD: clock.c,v 1.34 2008/01/10 16:04:57 tsutsui Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1990, 1993
|
* Copyright (c) 1982, 1990, 1993
|
||||||
@ -95,7 +95,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.33 2008/01/10 15:31:27 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.34 2008/01/10 16:04:57 tsutsui Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -238,8 +238,6 @@ oclock_attach(struct device *parent, struct device *self, void *aux)
|
|||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
todr_attach(&sc->sc_handle);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Can not hook up the ISR until cpu_initclocks()
|
* Can not hook up the ISR until cpu_initclocks()
|
||||||
* because hardclock is not ready until then.
|
* because hardclock is not ready until then.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: intersil7170.c,v 1.10 2008/01/10 14:51:49 tsutsui Exp $ */
|
/* $NetBSD: intersil7170.c,v 1.11 2008/01/10 16:04:58 tsutsui Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: intersil7170.c,v 1.10 2008/01/10 14:51:49 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: intersil7170.c,v 1.11 2008/01/10 16:04:58 tsutsui Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
@ -71,6 +71,8 @@ intersil7170_attach(struct intersil7170_softc *sc)
|
|||||||
handle->todr_gettime_ymdhms = intersil7170_gettime_ymdhms;
|
handle->todr_gettime_ymdhms = intersil7170_gettime_ymdhms;
|
||||||
handle->todr_settime_ymdhms = intersil7170_settime_ymdhms;
|
handle->todr_settime_ymdhms = intersil7170_settime_ymdhms;
|
||||||
handle->todr_setwen = NULL;
|
handle->todr_setwen = NULL;
|
||||||
|
|
||||||
|
todr_attach(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user