blob: 72002a37e4bad044a431c8d82360246da3d213ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-hw_xilinx__axienet.c,v 1.1 2011/08/22 12:00:34 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;
}
|