]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[pcnet32] Fix pcnet32_wio_reset() bug
authorAndrei Faur <da3drus@gmail.com>
Wed, 7 Jul 2010 12:43:41 +0000 (15:43 +0300)
committerMichael Brown <mcb30@ipxe.org>
Sun, 11 Jul 2010 14:53:22 +0000 (15:53 +0100)
This bug caused .probe to fail because the NIC did not reset properly.

Signed-off-by: Andrei Faur <da3drus@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/pcnet32.c

index 48cc5f7146da465730558e1da6b62f2c03fba8cb..e957ad9bbf903461a19ab4f7b9b1d14e57c5c78b 100644 (file)
@@ -74,7 +74,7 @@ static void pcnet32_wio_write_rap ( unsigned long addr , u16 val )
 
 static void pcnet32_wio_reset ( unsigned long addr )
 {
-       inw ( addr + PCNET32_DWIO_RESET );
+       inw ( addr + PCNET32_WIO_RESET );
 }
 
 static int pcnet32_wio_check ( unsigned long addr )