Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 13:15:10 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288022 - head/sys/dev/dwc
Message-ID:  <201509201315.t8KDFAbP099189@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: loos
Date: Sun Sep 20 13:15:09 2015
New Revision: 288022
URL: https://svnweb.freebsd.org/changeset/base/288022

Log:
  Remove unnecessary includes and, while here, sort them.

Modified:
  head/sys/dev/dwc/if_dwc.c

Modified: head/sys/dev/dwc/if_dwc.c
==============================================================================
--- head/sys/dev/dwc/if_dwc.c	Sun Sep 20 11:39:19 2015	(r288021)
+++ head/sys/dev/dwc/if_dwc.c	Sun Sep 20 13:15:09 2015	(r288022)
@@ -43,21 +43,14 @@ __FBSDID("$FreeBSD$");
 #include <sys/systm.h>
 #include <sys/bus.h>
 #include <sys/kernel.h>
-#include <sys/module.h>
-#include <sys/malloc.h>
-#include <sys/rman.h>
-#include <sys/endian.h>
 #include <sys/lock.h>
+#include <sys/malloc.h>
 #include <sys/mbuf.h>
+#include <sys/module.h>
 #include <sys/mutex.h>
+#include <sys/rman.h>
 #include <sys/socket.h>
 #include <sys/sockio.h>
-#include <sys/sysctl.h>
-
-#include <dev/fdt/fdt_common.h>
-#include <dev/ofw/openfirm.h>
-#include <dev/ofw/ofw_bus.h>
-#include <dev/ofw/ofw_bus_subr.h>
 
 #include <net/bpf.h>
 #include <net/if.h>
@@ -66,13 +59,15 @@ __FBSDID("$FreeBSD$");
 #include <net/if_media.h>
 #include <net/if_types.h>
 #include <net/if_var.h>
-#include <net/if_vlan_var.h>
 
 #include <machine/bus.h>
-#include <machine/fdt.h>
 
+#include <dev/dwc/if_dwc.h>
 #include <dev/mii/mii.h>
 #include <dev/mii/miivar.h>
+#include <dev/ofw/ofw_bus.h>
+#include <dev/ofw/ofw_bus_subr.h>
+
 #include "miibus_if.h"
 
 #define	READ4(_sc, _reg) \
@@ -85,8 +80,6 @@ __FBSDID("$FreeBSD$");
 #define	STATS_HARVEST_INTERVAL	2
 #define	MII_CLK_VAL		2
 
-#include <dev/dwc/if_dwc.h>
-
 #define	DWC_LOCK(sc)			mtx_lock(&(sc)->mtx)
 #define	DWC_UNLOCK(sc)			mtx_unlock(&(sc)->mtx)
 #define	DWC_ASSERT_LOCKED(sc)		mtx_assert(&(sc)->mtx, MA_OWNED)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509201315.t8KDFAbP099189>