summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-13 13:28:41 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-13 13:28:41 +0000
commit2bff95b606dc73489bf4f1efd16b30f1aac8f458 (patch)
tree785aa7651660b80de23e2052a19ab9e05d7ce2a6 /sys
parent066b67457973ebba86b5771ee7f282cf32084411 (diff)
Kill dead code.
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/imxiic.c54
1 files changed, 1 insertions, 53 deletions
diff --git a/sys/dev/fdt/imxiic.c b/sys/dev/fdt/imxiic.c
index 97a42f04544..f16b7306100 100644
--- a/sys/dev/fdt/imxiic.c
+++ b/sys/dev/fdt/imxiic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxiic.c,v 1.7 2018/12/23 22:48:19 patrick Exp $ */
+/* $OpenBSD: imxiic.c,v 1.8 2020/01/13 13:28:40 mpi Exp $ */
/*
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
*
@@ -68,8 +68,6 @@ int imxiic_match(struct device *, void *, void *);
void imxiic_attach(struct device *, struct device *, void *);
int imxiic_detach(struct device *, int);
void imxiic_setspeed(struct imxiic_softc *, u_int);
-int imxiic_intr(void *);
-int imxiic_wait_intr(struct imxiic_softc *, int, int);
int imxiic_wait_state(struct imxiic_softc *, uint32_t, uint32_t);
int imxiic_read(struct imxiic_softc *, int, const void *, int,
void *, int);
@@ -125,11 +123,6 @@ imxiic_attach(struct device *parent, struct device *self, void *aux)
faa->fa_reg[0].size, 0, &sc->sc_ioh))
panic("imxiic_attach: bus_space_map failed!");
-#if 0
- sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
- imxiic_intr, sc, sc->sc_dev.dv_xname);
-#endif
-
printf("\n");
clock_enable(faa->fa_node, NULL);
@@ -185,51 +178,6 @@ imxiic_setspeed(struct imxiic_softc *sc, u_int speed)
HWRITE2(sc, I2C_IFDR, sc->frequency);
}
-#if 0
-int
-imxiic_intr(void *arg)
-{
- struct imxiic_softc *sc = arg;
- u_int16_t status;
-
- status = HREAD2(sc, I2C_I2SR);
-
- if (ISSET(status, I2C_I2SR_IIF)) {
- /* acknowledge the interrupts */
- HWRITE2(sc, I2C_I2SR,
- HREAD2(sc, I2C_I2SR) & ~I2C_I2SR_IIF);
-
- sc->intr_status |= status;
- wakeup(&sc->intr_status);
- }
-
- return (0);
-}
-
-int
-imxiic_wait_intr(struct imxiic_softc *sc, int mask, int timo)
-{
- int status;
- int s;
-
- s = splbio();
-
- status = sc->intr_status & mask;
- while (status == 0) {
- if (tsleep(&sc->intr_status, PWAIT, "hcintr", timo)
- == EWOULDBLOCK) {
- break;
- }
- status = sc->intr_status & mask;
- }
- status = sc->intr_status & mask;
- sc->intr_status &= ~status;
-
- splx(s);
- return status;
-}
-#endif
-
int
imxiic_wait_state(struct imxiic_softc *sc, uint32_t mask, uint32_t value)
{