]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
- Add a missing prototype
authorkevlo <kevlo@FreeBSD.org>
Thu, 29 Oct 2015 04:21:34 +0000 (04:21 +0000)
committerkevlo <kevlo@FreeBSD.org>
Thu, 29 Oct 2015 04:21:34 +0000 (04:21 +0000)
- Fix typos

sys/dev/ral/rt2860.c
sys/dev/ral/rt2860var.h

index d233315d28e75d08879b10a934155d5b40f3af9a..049d11975afece29b71a195c75786f4e16980684 100644 (file)
@@ -115,6 +115,7 @@ static void rt2860_tx_intr(struct rt2860_softc *, int);
 static void    rt2860_rx_intr(struct rt2860_softc *);
 static void    rt2860_tbtt_intr(struct rt2860_softc *);
 static void    rt2860_gp_intr(struct rt2860_softc *);
+static void    rt2860_intr(void *);
 static int     rt2860_tx(struct rt2860_softc *, struct mbuf *,
                    struct ieee80211_node *);
 static int     rt2860_raw_xmit(struct ieee80211_node *, struct mbuf *,
@@ -513,7 +514,7 @@ rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring)
            BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
            size, 1, size, 0, NULL, NULL, &ring->desc_dmat);
        if (error != 0) {
-               device_printf(sc->sc_dev, "could not create desc DMA map\n");
+               device_printf(sc->sc_dev, "could not create desc DMA tag\n");
                goto fail;
        }
 
@@ -1386,7 +1387,7 @@ rt2860_gp_intr(struct rt2860_softc *sc)
                rt2860_updatestats(sc);
 }
 
-void
+static void
 rt2860_intr(void *arg)
 {
        struct rt2860_softc *sc = arg;
@@ -1699,7 +1700,7 @@ rt2860_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
        RAL_LOCK(sc);
 
        /* prevent management frames from being sent if we're not ready */
-       if (!(sc->sc_flags & RT2860_RUNNNING)) {
+       if (!(sc->sc_flags & RT2860_RUNNING)) {
                RAL_UNLOCK(sc);
                m_freem(m);
                return ENETDOWN;
@@ -1940,7 +1941,7 @@ rt2860_transmit(struct ieee80211com *ic, struct mbuf *m)
        int error;
 
        RAL_LOCK(sc);
-       if ((sc->sc_flags & RT2860_RUNNNING) == 0) {
+       if ((sc->sc_flags & RT2860_RUNNING) == 0) {
                RAL_UNLOCK(sc);
                return (ENXIO);
        }
@@ -1963,7 +1964,7 @@ rt2860_start(struct rt2860_softc *sc)
 
        RAL_LOCK_ASSERT(sc);
 
-       if ((sc->sc_flags & RT2860_RUNNNING) == 0)
+       if ((sc->sc_flags & RT2860_RUNNING) == 0)
                return;
 
        while (!SLIST_EMPTY(&sc->data_pool) && sc->qfullmsk == 0 &&
@@ -1986,7 +1987,7 @@ rt2860_watchdog(void *arg)
 
        RAL_LOCK_ASSERT(sc);
 
-       KASSERT(sc->sc_flags & RT2860_RUNNNING, ("not running"));
+       KASSERT(sc->sc_flags & RT2860_RUNNING, ("not running"));
 
        if (sc->sc_invalid)             /* card ejected */
                return;
@@ -2009,12 +2010,12 @@ rt2860_parent(struct ieee80211com *ic)
 
        RAL_LOCK(sc);
        if (ic->ic_nrunning> 0) {
-               if (!(sc->sc_flags & RT2860_RUNNNING)) {
+               if (!(sc->sc_flags & RT2860_RUNNING)) {
                        rt2860_init_locked(sc);
                        startall = 1;
                } else
                        rt2860_update_promisc(ic);
-       } else if (sc->sc_flags & RT2860_RUNNNING)
+       } else if (sc->sc_flags & RT2860_RUNNING)
                rt2860_stop_locked(sc);
        RAL_UNLOCK(sc);
        if (startall)
@@ -3791,7 +3792,7 @@ rt2860_init(void *arg)
        rt2860_init_locked(sc);
        RAL_UNLOCK(sc);
 
-       if (sc->sc_flags & RT2860_RUNNNING)
+       if (sc->sc_flags & RT2860_RUNNING)
                ieee80211_start_all(ic);
 }
 
@@ -4051,7 +4052,7 @@ rt2860_init_locked(struct rt2860_softc *sc)
        if (sc->sc_flags & RT2860_ADVANCED_PS)
                rt2860_mcu_cmd(sc, RT2860_MCU_CMD_PSLEVEL, sc->pslevel, 0);
 
-       sc->sc_flags |= RT2860_RUNNNING;
+       sc->sc_flags |= RT2860_RUNNING;
 
        callout_reset(&sc->watchdog_ch, hz, rt2860_watchdog, sc);
 }
@@ -4072,12 +4073,12 @@ rt2860_stop_locked(struct rt2860_softc *sc)
        uint32_t tmp;
        int qid;
 
-       if (sc->sc_flags & RT2860_RUNNNING)
+       if (sc->sc_flags & RT2860_RUNNING)
                rt2860_set_leds(sc, 0); /* turn all LEDs off */
 
        callout_stop(&sc->watchdog_ch);
        sc->sc_tx_timer = 0;
-       sc->sc_flags &= ~RT2860_RUNNNING;
+       sc->sc_flags &= ~RT2860_RUNNING;
 
        /* disable interrupts */
        RAL_WRITE(sc, RT2860_INT_MASK, 0);
index f7fd218186a8f4653b3ab224f8f7eda48926fb61..6d3765a6753c3c9f5f740b1bd969a87df37b70e3 100644 (file)
@@ -139,7 +139,7 @@ struct rt2860_softc {
 #define RT2860_ENABLED         (1 << 0)
 #define RT2860_ADVANCED_PS     (1 << 1)
 #define RT2860_PCIE            (1 << 2)
-#define        RT2860_RUNNNING         (1 << 3)
+#define        RT2860_RUNNING          (1 << 3)
 
        struct ieee80211_node           *wcid2ni[RT2860_WCID_MAX];