vr_init_locked() will stop and reset the controller. Remove

unnecessary vr_stop()/vr_reset() calls.
This commit is contained in:
Pyun YongHyeon 2010-08-24 18:44:12 +00:00
parent 9fb40e0a9b
commit 6a085e6341
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211766

View File

@ -1558,8 +1558,6 @@ vr_tick(void *xsc)
if ((sc->vr_flags & VR_F_RESTART) != 0) {
device_printf(sc->vr_dev, "restarting\n");
sc->vr_stat.num_restart++;
vr_stop(sc);
vr_reset(sc);
sc->vr_ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
vr_init_locked(sc);
sc->vr_flags &= ~VR_F_RESTART;
@ -2299,8 +2297,6 @@ vr_watchdog(struct vr_softc *sc)
ifp->if_oerrors++;
if_printf(ifp, "watchdog timeout\n");
vr_stop(sc);
vr_reset(sc);
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
vr_init_locked(sc);