mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
16 lines
462 B
C
16 lines
462 B
C
$NetBSD: patch-hw_xilinx__axienet.c,v 1.1 2012/06/07 21:35:37 ryoon Exp $
|
|
|
|
Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h>
|
|
|
|
--- hw/xilinx_axienet.c.orig 2011-08-08 18:28:42 +0000
|
|
+++ hw/xilinx_axienet.c
|
|
@@ -189,7 +189,7 @@ static uint16_t mdio_read_req(struct MDI
|
|
|
|
phy = bus->devs[addr];
|
|
if (phy && phy->read) {
|
|
- data = phy->read(phy, reg);
|
|
+ data = (*phy->read)(phy, reg);
|
|
} else {
|
|
data = 0xffff;
|
|
}
|