Author: imp
Date: Tue Aug 28 03:27:48 2012
New Revision: 239763
URL: http://svn.freebsd.org/changeset/base/239763

Log:
  Style: Move these routines to be before the forward declared functions
  as is the normal practice.

Modified:
  head/sys/arm/at91/at91_mci.c

Modified: head/sys/arm/at91/at91_mci.c
==============================================================================
--- head/sys/arm/at91/at91_mci.c        Tue Aug 28 01:28:52 2012        
(r239762)
+++ head/sys/arm/at91/at91_mci.c        Tue Aug 28 03:27:48 2012        
(r239763)
@@ -161,18 +161,6 @@ struct at91_mci_softc {
        uint32_t     xfer_offset;         /* offset so far into caller's buf */
 };
 
-static inline uint32_t
-RD4(struct at91_mci_softc *sc, bus_size_t off)
-{
-       return (bus_read_4(sc->mem_res, off));
-}
-
-static inline void
-WR4(struct at91_mci_softc *sc, bus_size_t off, uint32_t val)
-{
-       bus_write_4(sc->mem_res, off, val);
-}
-
 /* bus entry points */
 static int at91_mci_probe(device_t dev);
 static int at91_mci_attach(device_t dev);
@@ -193,6 +181,18 @@ static int at91_mci_is_mci1rev2xx(void);
 #define AT91_MCI_ASSERT_LOCKED(_sc)    mtx_assert(&_sc->sc_mtx, MA_OWNED);
 #define AT91_MCI_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
 
+static inline uint32_t
+RD4(struct at91_mci_softc *sc, bus_size_t off)
+{
+       return (bus_read_4(sc->mem_res, off));
+}
+
+static inline void
+WR4(struct at91_mci_softc *sc, bus_size_t off, uint32_t val)
+{
+       bus_write_4(sc->mem_res, off, val);
+}
+
 static void 
 at91_bswap_buf(struct at91_mci_softc *sc, void * dptr, void * sptr, uint32_t 
memsize)
 {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to