diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2013-06-26 14:53:07 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-15 21:49:12 (GMT) |
commit | 64978e2e542ff8ca2751b4378572ad381949c8e7 (patch) | |
tree | 3d6cf3d1badf437ab7e02253cf5a5aa0c1d19f1f /drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c | |
parent | f9269dd1fa2ae61f366e579ce356ec6346654b57 (diff) | |
download | linux-fsl-qoriq-64978e2e542ff8ca2751b4378572ad381949c8e7.tar.xz |
dpaa_eth: remove module loading order dependency
The dpa_rx_extra_headroom and dpa_max_frm are set by each module
init functions so there is no chance they are used before being
initialized. Also use the dpa_rx_extra_headroom for SG driver.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: If521e1f41e4857b5d03963aaa9fb2fa898a2183c
Reviewed-on: http://git.am.freescale.net:8181/3095
Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@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/dpaa_eth_proxy.c')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c index 21dda6d..454869a 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c @@ -172,11 +172,9 @@ static int __init __cold dpa_proxy_load(void) printk(KERN_INFO KBUILD_MODNAME ": " DPA_DESCRIPTION " (" VERSION ")\n"); -/* Todo: is it safe to remove these? - / * Initialize dpaa_eth mirror values * / + /* Initialize dpaa_eth mirror values */ dpa_rx_extra_headroom = fm_get_rx_extra_headroom(); dpa_max_frm = fm_get_max_frm(); -*/ _errno = platform_driver_register(&dpa_proxy_driver); if (unlikely(_errno < 0)) { |