mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
17 lines
536 B
C
17 lines
536 B
C
$NetBSD: patch-hw_net_xilinx__axienet.c,v 1.2 2014/01/15 18:26:20 wiz Exp $
|
|
|
|
Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h>
|
|
(PR lib/43832: ssp causes common names to be defines)
|
|
|
|
--- hw/net/xilinx_axienet.c.orig 2013-11-27 22:15:55.000000000 +0000
|
|
+++ hw/net/xilinx_axienet.c
|
|
@@ -207,7 +207,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;
|
|
}
|