diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-09 01:31:29 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-09 01:31:29 +0000 |
commit | 1624badace9fc04c41525be61cf898e85c85e672 (patch) | |
tree | fd6d978147ad5a312e7579f738fe97053bdfaee9 /sys/arm | |
parent | 4f6be8c788ca0339a84e935515d290b59dbec31b (diff) | |
download | src-1624badace9fc04c41525be61cf898e85c85e672.tar.gz src-1624badace9fc04c41525be61cf898e85c85e672.zip |
imx6_ssi: Remove unused variables, #if 0 variables only used under #if 0.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/freescale/imx/imx6_ssi.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arm/freescale/imx/imx6_ssi.c b/sys/arm/freescale/imx/imx6_ssi.c index 2330978849e9..8871e2dfbbfe 100644 --- a/sys/arm/freescale/imx/imx6_ssi.c +++ b/sys/arm/freescale/imx/imx6_ssi.c @@ -435,7 +435,7 @@ static int find_sdma_controller(struct sc_info *sc) { struct sdma_softc *sdma_sc; - phandle_t node, sdma_node; + phandle_t node; device_t sdma_dev; pcell_t dts_value[DMAS_TOTAL]; int len; @@ -458,8 +458,6 @@ find_sdma_controller(struct sc_info *sc) sc->sdma_ev_rx = dts_value[1]; sc->sdma_ev_tx = dts_value[5]; - sdma_node = OF_node_from_xref(dts_value[0]); - sdma_sc = NULL; sdma_dev = devclass_get_device(devclass_find("sdma"), 0); @@ -659,17 +657,17 @@ ssi_probe(device_t dev) static void ssi_intr(void *arg) { +#if 0 struct sc_pcminfo *scp; - struct sc_chinfo *ch; struct sc_info *sc; - - scp = arg; + + scp = arg; sc = scp->sc; - ch = &scp->chan[0]; +#endif /* We don't use SSI interrupt */ #if 0 - device_printf(sc->dev, "SSI Intr 0x%08x\n", + device_printf(scp->sc->dev, "SSI Intr 0x%08x\n", READ4(sc, SSI_SISR)); #endif } |