diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2015-01-15 12:09:46 (GMT) |
---|---|---|
committer | Madalin Bucur <madalin.bucur@freescale.com> | 2015-02-25 16:27:03 (GMT) |
commit | bca44675a8dbcbf97653cb0c11c477262074eee0 (patch) | |
tree | 760c13f23ac4872f6268055be9b9674f0fd9b0fc /drivers | |
parent | a648aa60a34dd2ab5dbfbe691bdbf1cd5253dcdd (diff) | |
download | linux-fsl-qoriq-bca44675a8dbcbf97653cb0c11c477262074eee0.tar.xz |
dpaa_eth: delete and release used CGRs
The CGRs need to be deteled and released upon driver removal.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: I8bfe5f10388c0d90761a6b8ed9d8816b65625864
Reviewed-on: http://git.am.freescale.net:8181/28534
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c index 4541ecf..60e8d08 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c @@ -514,6 +514,11 @@ int __cold dpa_remove(struct platform_device *of_dev) err = dpa_fq_free(dev, &priv->dpa_fq_list); + qman_delete_cgr_safe(&priv->ingress_cgr); + qman_release_cgrid(priv->ingress_cgr.cgrid); + qman_delete_cgr_safe(&priv->cgr_data.cgr); + qman_release_cgrid(priv->cgr_data.cgr.cgrid); + dpa_private_napi_del(net_dev); dpa_bp_free(priv, priv->dpa_bp); |