From 642a31aa543c1f1110e721088d7e90bf580b8a1d Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 28 Aug 2016 20:20:37 +0000 Subject: [PATCH] Get rid of sxipio_ioh and sxipio_iot; they're not used (anymore). --- sys/arch/armv7/sunxi/sxipio.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/arch/armv7/sunxi/sxipio.c b/sys/arch/armv7/sunxi/sxipio.c index a5129384496..744018402dd 100644 --- a/sys/arch/armv7/sunxi/sxipio.c +++ b/sys/arch/armv7/sunxi/sxipio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxipio.c,v 1.12 2016/08/28 17:31:44 kettenis Exp $ */ +/* $OpenBSD: sxipio.c,v 1.13 2016/08/28 20:20:37 kettenis Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. * Copyright (c) 2013 Artturi Alm @@ -108,8 +108,6 @@ int sxipio_get_pin(void *, uint32_t *); void sxipio_set_pin(void *, uint32_t *, int); struct sxipio_softc *sxipio_sc = NULL; -bus_space_tag_t sxipio_iot; -bus_space_handle_t sxipio_ioh; #include "sxipio_pins.h" @@ -151,11 +149,10 @@ sxipio_attach(struct device *parent, struct device *self, void *args) /* XXX check unit, bail if != 0 */ - sc->sc_iot = sxipio_iot = aa->aa_iot; - if (bus_space_map(sxipio_iot, aa->aa_dev->mem[0].addr, + sc->sc_iot = aa->aa_iot; + if (bus_space_map(sc->sc_iot, aa->aa_dev->mem[0].addr, aa->aa_dev->mem[0].size, 0, &sc->sc_ioh)) panic("sxipio_attach: bus_space_map failed!"); - sxipio_ioh = sc->sc_ioh; sxipio_sc = sc; -- 2.20.1