mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
arm ti: Remove unused variables.
This commit is contained in:
parent
ce71fb38d9
commit
0d46a96abf
8 changed files with 2 additions and 26 deletions
|
|
@ -127,7 +127,6 @@ static int
|
|||
ti_am3359_cppi41_attach(device_t dev)
|
||||
{
|
||||
struct ti_am3359_cppi41_softc *sc;
|
||||
phandle_t node;
|
||||
uint32_t reg, reset_bit, timeout=10;
|
||||
uint64_t sysc_address;
|
||||
device_t parent;
|
||||
|
|
@ -145,7 +144,6 @@ ti_am3359_cppi41_attach(device_t dev)
|
|||
sc->bsh = rman_get_bushandle(sc->res[0]);
|
||||
|
||||
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
|
||||
node = ofw_bus_get_node(sc->dev);
|
||||
|
||||
/* variant of am335x_usbss.c */
|
||||
DPRINTF(dev, "-- RESET USB --\n");
|
||||
|
|
|
|||
|
|
@ -406,7 +406,6 @@ static int
|
|||
musbotg_detach(device_t dev)
|
||||
{
|
||||
struct musbotg_super_softc *sc = device_get_softc(dev);
|
||||
int err;
|
||||
|
||||
/* during module unload there are lots of children leftover */
|
||||
device_delete_children(dev);
|
||||
|
|
@ -417,7 +416,7 @@ musbotg_detach(device_t dev)
|
|||
*/
|
||||
musbotg_uninit(&sc->sc_otg);
|
||||
|
||||
err = bus_teardown_intr(dev, sc->sc_otg.sc_irq_res,
|
||||
bus_teardown_intr(dev, sc->sc_otg.sc_irq_res,
|
||||
sc->sc_otg.sc_intr_hdl);
|
||||
sc->sc_otg.sc_intr_hdl = NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,11 +84,9 @@ static int
|
|||
ti_usb_phy_attach(device_t dev)
|
||||
{
|
||||
struct ti_usb_phy_softc *sc;
|
||||
phandle_t node;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
sc->dev = dev;
|
||||
node = ofw_bus_get_node(dev);
|
||||
|
||||
/* FIXME: Add dev/extres/phy/ interface */
|
||||
|
||||
|
|
|
|||
|
|
@ -76,10 +76,6 @@ struct ti_dpll_clknode_sc {
|
|||
static int
|
||||
ti_dpll_clk_init(struct clknode *clk, device_t dev)
|
||||
{
|
||||
struct ti_dpll_clknode_sc *sc;
|
||||
|
||||
sc = clknode_get_softc(clk);
|
||||
|
||||
clknode_init_parent_idx(clk, 0);
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,10 +224,7 @@ ti_mbox_detach(device_t dev)
|
|||
static void
|
||||
ti_mbox_intr(void *arg)
|
||||
{
|
||||
struct ti_mbox_softc *sc;
|
||||
|
||||
sc = arg;
|
||||
DPRINTF("interrupt %p", sc);
|
||||
DPRINTF("interrupt %p", arg);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -520,7 +520,6 @@ ti_pruss_attach(device_t dev)
|
|||
{
|
||||
struct ti_pruss_softc *sc;
|
||||
int rid, i, err, ncells;
|
||||
uint32_t reg;
|
||||
phandle_t node;
|
||||
clk_t l3_gclk, pruss_ocp_gclk;
|
||||
phandle_t ti_prm_ref, *cells;
|
||||
|
|
@ -681,9 +680,6 @@ ti_pruss_attach(device_t dev)
|
|||
}
|
||||
}
|
||||
|
||||
reg = ti_pruss_reg_read(sc,
|
||||
ti_sysc_get_sysc_address_offset_host(device_get_parent(dev)));
|
||||
|
||||
if (ti_pruss_reg_read(sc, PRUSS_AM33XX_INTC) == PRUSS_AM33XX_REV)
|
||||
device_printf(dev, "AM33xx PRU-ICSS\n");
|
||||
|
||||
|
|
|
|||
|
|
@ -366,11 +366,9 @@ ti_spi_drain_fifo(struct ti_spi_softc *sc)
|
|||
static void
|
||||
ti_spi_intr(void *arg)
|
||||
{
|
||||
int eow;
|
||||
struct ti_spi_softc *sc;
|
||||
uint32_t status;
|
||||
|
||||
eow = 0;
|
||||
sc = (struct ti_spi_softc *)arg;
|
||||
TI_SPI_LOCK(sc);
|
||||
status = TI_SPI_READ(sc, MCSPI_IRQSTATUS);
|
||||
|
|
@ -386,9 +384,6 @@ ti_spi_intr(void *arg)
|
|||
if (status & MCSPI_IRQ_RX0_FULL)
|
||||
ti_spi_drain_fifo(sc);
|
||||
|
||||
if (status & MCSPI_IRQ_EOW)
|
||||
eow = 1;
|
||||
|
||||
/* Clear interrupt status. */
|
||||
TI_SPI_WRITE(sc, MCSPI_IRQSTATUS, status);
|
||||
|
||||
|
|
|
|||
|
|
@ -400,12 +400,9 @@ ti_sysc_attach_clocks(struct ti_sysc_softc *sc) {
|
|||
clk_t *clk;
|
||||
struct clk_list *clkp;
|
||||
int index, err;
|
||||
phandle_t cnode;
|
||||
|
||||
clk = malloc(sc->num_clocks*sizeof(clk_t), M_DEVBUF, M_WAITOK | M_ZERO);
|
||||
|
||||
cnode = ofw_bus_get_node(sc->dev);
|
||||
|
||||
/* Check if all clocks can be found */
|
||||
for (index = 0; index < sc->num_clocks; index++) {
|
||||
err = clk_get_by_ofw_index(sc->dev, 0, index, &clk[index]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue