summaryrefslogtreecommitdiffstats
path: root/sys/dev/tsec/if_tsec.c
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2009-06-13 08:57:04 +0000
committerraj <raj@FreeBSD.org>2009-06-13 08:57:04 +0000
commit1605e27e02880384424fc9ce2943ac4ccf6f3546 (patch)
tree6011c8316f53bb84dddeeb615069d9a1f97289fe /sys/dev/tsec/if_tsec.c
parentc8cae40489b27ad20886df80e81cc2ea12d9d635 (diff)
downloadFreeBSD-src-1605e27e02880384424fc9ce2943ac4ccf6f3546.zip
FreeBSD-src-1605e27e02880384424fc9ce2943ac4ccf6f3546.tar.gz
Fix Book-E/MPC85XX build. Some prototypes were wrong and got revealed with
the recent kobj signature checking.
Diffstat (limited to 'sys/dev/tsec/if_tsec.c')
-rw-r--r--sys/dev/tsec/if_tsec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c
index 3676cfc..23ed34e 100644
--- a/sys/dev/tsec/if_tsec.c
+++ b/sys/dev/tsec/if_tsec.c
@@ -313,7 +313,7 @@ tsec_detach(struct tsec_softc *sc)
return (0);
}
-void
+int
tsec_shutdown(device_t dev)
{
struct tsec_softc *sc;
@@ -323,6 +323,7 @@ tsec_shutdown(device_t dev)
TSEC_GLOBAL_LOCK(sc);
tsec_stop(sc);
TSEC_GLOBAL_UNLOCK(sc);
+ return (0);
}
int
@@ -1582,7 +1583,7 @@ tsec_miibus_readreg(device_t dev, int phy, int reg)
return (TSEC_READ(sc, TSEC_REG_MIIMSTAT));
}
-void
+int
tsec_miibus_writereg(device_t dev, int phy, int reg, int value)
{
struct tsec_softc *sc;
@@ -1606,6 +1607,8 @@ tsec_miibus_writereg(device_t dev, int phy, int reg, int value)
if (timeout == 0)
device_printf(dev, "Timeout while writing to PHY!\n");
+
+ return (0);
}
void
OpenPOWER on IntegriCloud