summaryrefslogtreecommitdiffstats
path: root/sys/dev/smc
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-06-11 17:14:54 +0000
committeravg <avg@FreeBSD.org>2009-06-11 17:14:54 +0000
commit3c57df2dbc21e2351f670d53a773b309f3b1cddb (patch)
tree032b461819e34785751a187a083112b629d45201 /sys/dev/smc
parentd5ad944b79d33fa75c3e6f59b5cd900550993783 (diff)
downloadFreeBSD-src-3c57df2dbc21e2351f670d53a773b309f3b1cddb.zip
FreeBSD-src-3c57df2dbc21e2351f670d53a773b309f3b1cddb.tar.gz
strict kobj signatures: fix assortment of miibus_writereg impls
return type should be int, not void Reviewed by: imp, current@ Approved by: jhb (mentor)
Diffstat (limited to 'sys/dev/smc')
-rw-r--r--sys/dev/smc/if_smc.c3
-rw-r--r--sys/dev/smc/if_smcvar.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/smc/if_smc.c b/sys/dev/smc/if_smc.c
index 6204faf..f7f5407 100644
--- a/sys/dev/smc/if_smc.c
+++ b/sys/dev/smc/if_smc.c
@@ -999,7 +999,7 @@ smc_miibus_readreg(device_t dev, int phy, int reg)
return (val);
}
-void
+int
smc_miibus_writereg(device_t dev, int phy, int reg, int data)
{
struct smc_softc *sc;
@@ -1029,6 +1029,7 @@ smc_miibus_writereg(device_t dev, int phy, int reg, int data)
smc_read_2(sc, MGMT) & ~(MGMT_MCLK | MGMT_MDOE | MGMT_MDO));
SMC_UNLOCK(sc);
+ return (0);
}
void
diff --git a/sys/dev/smc/if_smcvar.h b/sys/dev/smc/if_smcvar.h
index 9bff17d..fd42edb 100644
--- a/sys/dev/smc/if_smcvar.h
+++ b/sys/dev/smc/if_smcvar.h
@@ -71,7 +71,7 @@ int smc_attach(device_t);
int smc_detach(device_t);
int smc_miibus_readreg(device_t, int, int);
-void smc_miibus_writereg(device_t, int, int, int);
+int smc_miibus_writereg(device_t, int, int, int);
void smc_miibus_statchg(device_t);
#endif /* _IF_SMCVAR_H_ */
OpenPOWER on IntegriCloud