summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-18 07:28:22 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-23 09:24:05 +0200
commitb3a6ad0d6a4c5d832f3e865f91ebceac06dc5747 (patch)
tree6c1de9ee1bb95c468163d547c9f8aa772be6175a /linux
parentcf40770bdc33482d769e6154e0ffbc2e156d9a1e (diff)
downloadrtems-libbsd-b3a6ad0d6a4c5d832f3e865f91ebceac06dc5747.tar.bz2
dpaa: Disable unused CGR code
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/soc/fsl/qbman/qman.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/soc/fsl/qbman/qman.c b/linux/drivers/soc/fsl/qbman/qman.c
index d0d12dc2..c8cf64f7 100644
--- a/linux/drivers/soc/fsl/qbman/qman.c
+++ b/linux/drivers/soc/fsl/qbman/qman.c
@@ -2300,6 +2300,7 @@ static void qm_cgr_cscn_targ_set(struct __qm_mc_cgr *cgr, int pi, u32 val)
cgr->cscn_targ = cpu_to_be32(val | QM_CGR_TARG_PORTAL(pi));
}
+#ifndef __rtems__
static void qm_cgr_cscn_targ_clear(struct __qm_mc_cgr *cgr, int pi, u32 val)
{
if (qman_ip_rev >= QMAN_REV30)
@@ -2307,6 +2308,7 @@ static void qm_cgr_cscn_targ_clear(struct __qm_mc_cgr *cgr, int pi, u32 val)
else
cgr->cscn_targ = cpu_to_be32(val & ~QM_CGR_TARG_PORTAL(pi));
}
+#endif /* __rtems__ */
static u8 qman_cgr_cpus[CGR_NUM];
@@ -2390,6 +2392,7 @@ out:
}
EXPORT_SYMBOL(qman_create_cgr);
+#ifndef __rtems__
int qman_delete_cgr(struct qman_cgr *cgr)
{
unsigned long irqflags;
@@ -2483,6 +2486,7 @@ out:
preempt_enable();
}
EXPORT_SYMBOL(qman_delete_cgr_safe);
+#endif /* __rtems__ */
/* Cleanup FQs */