diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-08-10 19:41:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-08-10 19:41:06 +0000 |
commit | be16e44bfdbedb5f7dcbaa439bcf4221406f27ab (patch) | |
tree | 8551cdc8afc526beb3b4476b9e0a4a399bbcdf9e /sys/dev/pci/if_sis.c | |
parent | 8dd15f07927461c362b2078935e71dca46c4fbc0 (diff) |
A few more simple cases of shutdown hooks which only call xxstop, when
we now know the interface has already been stopped
Diffstat (limited to 'sys/dev/pci/if_sis.c')
-rw-r--r-- | sys/dev/pci/if_sis.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 3fb8be5af3b..75db5e4842d 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.95 2009/08/09 11:40:56 deraadt Exp $ */ +/* $OpenBSD: if_sis.c,v 1.96 2009/08/10 19:41:05 deraadt Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -114,7 +114,6 @@ struct cfdriver sis_cd = { }; int sis_intr(void *); -void sis_shutdown(void *); void sis_fill_rx_ring(struct sis_softc *); int sis_newbuf(struct sis_softc *, struct sis_desc *); int sis_encap(struct sis_softc *, struct mbuf *, u_int32_t *); @@ -1144,8 +1143,6 @@ sis_attach(struct device *parent, struct device *self, void *aux) */ if_attach(ifp); ether_ifattach(ifp); - - shutdownhook_establish(sis_shutdown, sc); return; fail_2: @@ -1990,15 +1987,3 @@ sis_stop(struct sis_softc *sc) sizeof(struct sis_desc) - sizeof(bus_dmamap_t)); } } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -void -sis_shutdown(void *v) -{ - struct sis_softc *sc = (struct sis_softc *)v; - - sis_stop(sc); -} |