kernel: bump 5.4 to 5.4.40
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 701-net-0087-sdk_dpaa-ceetm-rename-qdisc_destroy-to-qdisc_put.patch
1 From b8f8c14491160043dd880d1e62c01903402352b2 Mon Sep 17 00:00:00 2001
2 From: Camelia Groza <camelia.groza@nxp.com>
3 Date: Wed, 24 Oct 2018 13:35:16 +0300
4 Subject: [PATCH] sdk_dpaa: ceetm: rename qdisc_destroy() to qdisc_put()
5
6 Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
7 ---
8 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c | 8 ++++----
9 1 file changed, 4 insertions(+), 4 deletions(-)
10
11 --- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
12 +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
13 @@ -432,7 +432,7 @@ static void ceetm_cls_destroy(struct Qdi
14 switch (cl->type) {
15 case CEETM_ROOT:
16 if (cl->root.child) {
17 - qdisc_destroy(cl->root.child);
18 + qdisc_put(cl->root.child);
19 cl->root.child = NULL;
20 }
21
22 @@ -445,7 +445,7 @@ static void ceetm_cls_destroy(struct Qdi
23
24 case CEETM_PRIO:
25 if (cl->prio.child) {
26 - qdisc_destroy(cl->prio.child);
27 + qdisc_put(cl->prio.child);
28 cl->prio.child = NULL;
29 }
30
31 @@ -567,7 +567,7 @@ static void ceetm_destroy(struct Qdisc *
32 */
33 for (ntx = 0; ntx < dev->num_tx_queues; ntx++)
34 if (priv->root.qdiscs[ntx])
35 - qdisc_destroy(priv->root.qdiscs[ntx]);
36 + qdisc_put(priv->root.qdiscs[ntx]);
37
38 kfree(priv->root.qdiscs);
39 break;
40 @@ -1367,7 +1367,7 @@ static void ceetm_attach(struct Qdisc *s
41 qdisc = priv->root.qdiscs[i];
42 old_qdisc = dev_graft_qdisc(qdisc->dev_queue, qdisc);
43 if (old_qdisc)
44 - qdisc_destroy(old_qdisc);
45 + qdisc_put(old_qdisc);
46 }
47
48 kfree(priv->root.qdiscs);