diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-09-22 09:34:24 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-09-22 09:34:24 +0000 |
commit | 2e3cbe47f484629aad11f33b75bac6370dd02961 (patch) | |
tree | 271b56ef2f8f75696d0ccd4493ccfc4244df1c8e /sys/arch | |
parent | 39e42dd72176de37ae53cf8880acd44bd9071944 (diff) |
Remove unused code.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/armv7/imx/imxocotp.c | 17 | ||||
-rw-r--r-- | sys/arch/armv7/imx/imxocotpvar.h | 3 |
2 files changed, 2 insertions, 18 deletions
diff --git a/sys/arch/armv7/imx/imxocotp.c b/sys/arch/armv7/imx/imxocotp.c index 38310b9a857..aa17d5357ed 100644 --- a/sys/arch/armv7/imx/imxocotp.c +++ b/sys/arch/armv7/imx/imxocotp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxocotp.c,v 1.5 2017/09/20 11:21:58 kettenis Exp $ */ +/* $OpenBSD: imxocotp.c,v 1.6 2017/09/22 09:34:23 kettenis Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> * @@ -87,21 +87,6 @@ imxocotp_attach(struct device *parent, struct device *self, void *aux) printf("\n"); } -void -imxocotp_get_ethernet_address(u_int8_t* mac) -{ - uint32_t value; - - value = bus_space_read_4(imxocotp_sc->sc_iot, imxocotp_sc->sc_ioh, OCOTP_MAC0); - mac[5] = value & 0xff; - mac[4] = (value >> 8) & 0xff; - mac[3] = (value >> 16) & 0xff; - mac[2] = (value >> 24) & 0xff; - value = bus_space_read_4(imxocotp_sc->sc_iot, imxocotp_sc->sc_ioh, OCOTP_MAC1); - mac[1] = value & 0xff; - mac[0] = (value >> 8) & 0xff; -} - uint32_t imxocotp_get_temperature_calibration(void) { diff --git a/sys/arch/armv7/imx/imxocotpvar.h b/sys/arch/armv7/imx/imxocotpvar.h index e64a8188dfd..245f91a7fee 100644 --- a/sys/arch/armv7/imx/imxocotpvar.h +++ b/sys/arch/armv7/imx/imxocotpvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: imxocotpvar.h,v 1.2 2016/08/14 19:08:44 kettenis Exp $ */ +/* $OpenBSD: imxocotpvar.h,v 1.3 2017/09/22 09:34:23 kettenis Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> * @@ -15,5 +15,4 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -void imxocotp_get_ethernet_address(u_int8_t* mac); uint32_t imxocotp_get_temperature_calibration(void); |