From e899bb85a1c3ef709742b8a45ab13c7fe9c9cb48 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 20 Jul 2001 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2001-07-20 --- pc/devi82365.c | 10 +++++----- pc/etherelnk3.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pc/devi82365.c b/pc/devi82365.c index fa003b90422f5cce55c3cdd830acf477b59d1de4..59c6ba1c941c761d00ff78e27d18d993977fd3ea 100644 --- a/pc/devi82365.c +++ b/pc/devi82365.c @@ -513,6 +513,11 @@ i82365probe(int x, int d, int dev) cp->type = Tpd6710; cp->nslot = 1; } + + /* low power mode */ + outb(x, Rmisc2 + (dev<<7)); + c = inb(d); + outb(d, c & ~Flowpow); break; } @@ -537,11 +542,6 @@ i82365probe(int x, int d, int dev) outb(d, c & ~0xC0); } - /* low power mode */ - outb(x, Rmisc2 + (dev<<7)); - c = inb(d); - outb(d, c & ~Flowpow); - memset(&isa, 0, sizeof(ISAConf)); if(isaconfig("pcmcia", ncontroller, &isa) && isa.irq) cp->irq = isa.irq; diff --git a/pc/etherelnk3.c b/pc/etherelnk3.c index a9004cde71e140971321d6284ad5711a1a5ba373..dec1d443dc7ee4ece0c89be3e7669089077d4034 100644 --- a/pc/etherelnk3.c +++ b/pc/etherelnk3.c @@ -1810,8 +1810,8 @@ etherelnk3reset(Ether* ether) ether->irq = ap->irq; ether->tbdf = ap->tbdf; cbfns = ap->cbfns; - *bpp = bp->next; - freeb(bp); + // *bpp = bp->next; // HIRO. + // freeb(bp); break; } bpp = &bp->next;