diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2014-02-07 10:17:50 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2014-02-10 09:21:58 (GMT) |
commit | 9e9a2aed6bfa822cb1fb04351860c41318509fd2 (patch) | |
tree | b50fe735a0cc554753aad18fa8d83204f6417dc4 /drivers/net/ethernet/freescale/dpa | |
parent | f4d18ecf9782015f67a6e7d041846d59b493379d (diff) | |
download | linux-fsl-qoriq-9e9a2aed6bfa822cb1fb04351860c41318509fd2.tar.xz |
dpaa_eth: include headers only where required
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: I979d2a799d2b36e3285bcb4f1b82a56c248c90d6
Reviewed-on: http://git.am.freescale.net:8181/8649
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa')
4 files changed, 7 insertions, 13 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h index 6d29e5a..c5a7ac8 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h @@ -32,21 +32,10 @@ #ifndef __DPA_H #define __DPA_H -#include <linux/ethtool.h> /* struct ethtool_ops */ #include <linux/netdevice.h> -#include <linux/list.h> /* struct list_head */ -#include <linux/workqueue.h> /* struct work_struct */ -#include <linux/skbuff.h> -#include <linux/hardirq.h> -#include <linux/if_vlan.h> /* vlan_eth_hdr */ -#include <linux/ip.h> /* ip_hdr */ -#include <linux/ipv6.h> /* ipv6_hdr */ - #include <linux/fsl_qman.h> /* struct qman_fq */ -#include "lnxwrp_fsl_fman.h" #include "fm_ext.h" -#include "fm_port_ext.h" /* FM_PORT_FRM_ERR_* */ #ifdef CONFIG_FSL_DPAA_ETH_DEBUGFS #include "dpaa_debugfs.h" #endif /* CONFIG_FSL_DPAA_ETH_DEBUGFS */ diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c index 2b33cc4..d76a5aa 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c @@ -39,6 +39,9 @@ #include <linux/highmem.h> #include <linux/sort.h> #include <linux/fsl_qman.h> +#include <linux/ip.h> +#include <linux/ipv6.h> +#include <linux/if_vlan.h> /* vlan_eth_hdr */ #include "dpaa_eth.h" #include "dpaa_eth_common.h" #include "dpaa_1588.h" diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.h index b7dc1af..fd654b7 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.h @@ -37,6 +37,9 @@ #include <linux/of_platform.h> /* struct platform_device */ #include <linux/net_tstamp.h> /* struct hwtstamp_config */ +#include "dpaa_eth.h" +#include "lnxwrp_fsl_fman.h" + /* make dpaa_eth code compile without the FMD AR code */ #ifdef CONFIG_PM #ifndef fm_port_suspend @@ -99,7 +102,7 @@ typedef enum dpaa_eth_hook_result (*dpaa_eth_confirm_hook_t)( /* used in napi related functions */ extern u16 qman_portal_max; -/* from dpa-ethtool.c */ +/* from dpa_ethtool.c */ extern const struct ethtool_ops dpa_ethtool_ops; #if defined(CONFIG_AS_FASTPATH) || defined(CONFIG_FSL_FMAN_TEST) diff --git a/drivers/net/ethernet/freescale/dpa/mac-api.c b/drivers/net/ethernet/freescale/dpa/mac-api.c index ab16134..cf7fc07 100644 --- a/drivers/net/ethernet/freescale/dpa/mac-api.c +++ b/drivers/net/ethernet/freescale/dpa/mac-api.c @@ -46,7 +46,6 @@ #include <linux/netdevice.h> #include "dpaa_eth.h" -#include "dpaa_eth_common.h" #include "mac.h" #include "lnxwrp_fsl_fman.h" |