From 3e799256b7d6c731b8e92fb3378f4c74adf4080a Mon Sep 17 00:00:00 2001 From: simonb Date: Fri, 3 Mar 2006 05:35:26 +0000 Subject: [PATCH] Oops, missed the call to rnd_attach_source() in previous. --- sys/arch/mips/alchemy/dev/if_aumac.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arch/mips/alchemy/dev/if_aumac.c b/sys/arch/mips/alchemy/dev/if_aumac.c index 8951a077ca33..1a8e2d11617b 100644 --- a/sys/arch/mips/alchemy/dev/if_aumac.c +++ b/sys/arch/mips/alchemy/dev/if_aumac.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_aumac.c,v 1.15 2006/03/03 05:27:29 simonb Exp $ */ +/* $NetBSD: if_aumac.c,v 1.16 2006/03/03 05:35:26 simonb Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -46,7 +46,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.15 2006/03/03 05:27:29 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_aumac.c,v 1.16 2006/03/03 05:35:26 simonb Exp $"); #include "bpfilter.h" #include "rnd.h" @@ -348,6 +348,11 @@ aumac_attach(struct device *parent, struct device *self, void *aux) if_attach(ifp); ether_ifattach(ifp, enaddr); +#if NRND > 0 + rnd_attach_source(&sc->rnd_source, sc->sc_dev.dv_xname, + RND_TYPE_NET, 0); +#endif + #ifdef AUMAC_EVENT_COUNTERS evcnt_attach_dynamic(&sc->sc_ev_txstall, EVCNT_TYPE_MISC, NULL, sc->sc_dev.dv_xname, "txstall");