From: jsg Date: Fri, 29 May 2015 02:35:43 +0000 (+0000) Subject: Remove unused bus space tags/handles. The generic timer uses the cp15 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c83094e173ffac247866812b0651d91f19006af2;p=openbsd Remove unused bus space tags/handles. The generic timer uses the cp15 coprocessor space. --- diff --git a/sys/arch/arm/cortex/agtimer.c b/sys/arch/arm/cortex/agtimer.c index 1899d5a7894..60fbafb5cc5 100644 --- a/sys/arch/arm/cortex/agtimer.c +++ b/sys/arch/arm/cortex/agtimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agtimer.c,v 1.1 2013/09/09 14:31:54 patrick Exp $ */ +/* $OpenBSD: agtimer.c,v 1.2 2015/05/29 02:35:43 jsg Exp $ */ /* * Copyright (c) 2011 Dale Rahn * Copyright (c) 2013 Patrick Wildt @@ -54,9 +54,6 @@ struct agtimer_pcpu_softc { struct agtimer_softc { struct device sc_dev; - bus_space_tag_t sc_iot; - bus_space_handle_t sc_ioh; - bus_space_handle_t sc_pioh; struct agtimer_pcpu_softc sc_pstat[MAX_ARM_CPUS]; @@ -166,17 +163,10 @@ void agtimer_attach(struct device *parent, struct device *self, void *args) { struct agtimer_softc *sc = (struct agtimer_softc *)self; - struct cortex_attach_args *ia = args; - bus_space_handle_t ioh, pioh; - - sc->sc_iot = ia->ca_iot; sc->sc_ticks_per_second = agtimer_frequency; printf(": tick rate %d KHz\n", sc->sc_ticks_per_second /1000); - sc->sc_ioh = ioh; - sc->sc_pioh = pioh; - /* XXX: disable user access */ #ifdef AMPTIMER_DEBUG