diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2013-06-27 17:46:31 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-15 21:49:26 (GMT) |
commit | cad948fa3296c470fe51c45d5b1861d142138c7a (patch) | |
tree | dfde9995ba13f34a0aef4aef38067bedb5534e85 /drivers/net/ethernet/freescale/dpa/offline_port.c | |
parent | 64978e2e542ff8ca2751b4378572ad381949c8e7 (diff) | |
download | linux-fsl-qoriq-cad948fa3296c470fe51c45d5b1861d142138c7a.tar.xz |
dpaa_eth: move common code to a separate file
Created dpaa_eth_common.c to hold all common code.
Moved legacy non-SG related code to its own file.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: I5a79559714f515e6889655a1cc7256a556043c45
Reviewed-on: http://git.am.freescale.net:8181/3096
Reviewed-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com>
Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/offline_port.c')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/offline_port.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/offline_port.c b/drivers/net/ethernet/freescale/dpa/offline_port.c index 240e177..c002dc9 100644 --- a/drivers/net/ethernet/freescale/dpa/offline_port.c +++ b/drivers/net/ethernet/freescale/dpa/offline_port.c @@ -44,7 +44,8 @@ #include <linux/of_platform.h> #include "offline_port.h" -#include "dpaa_eth-common.h" +#include "dpaa_eth.h" +#include "dpaa_eth_common.h" #define OH_MOD_DESCRIPTION "FSL FMan Offline Parsing port driver" /* @@ -128,7 +129,7 @@ oh_port_probe(struct platform_device *_of_dev) struct platform_device *oh_of_dev; struct device_node *oh_node, *bpool_node = NULL, *root_node; struct device *oh_dev; - struct dpa_oh_config_s *oh_config; + struct dpa_oh_config_s *oh_config = NULL; uint32_t *oh_all_queues; uint32_t queues_count; uint32_t crt_fqid_base; |