From a7d252c645c59e877fe468e4c3e33dde47381d7c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 12 Jan 2018 13:22:10 +0100 Subject: dpaa: Add and use bman_new_pool_for_bpid() Update #3277. --- linux/drivers/soc/fsl/qbman/bman.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'linux/drivers/soc/fsl/qbman') diff --git a/linux/drivers/soc/fsl/qbman/bman.c b/linux/drivers/soc/fsl/qbman/bman.c index 44e4ee4b..50923fb1 100644 --- a/linux/drivers/soc/fsl/qbman/bman.c +++ b/linux/drivers/soc/fsl/qbman/bman.c @@ -720,6 +720,17 @@ err: return NULL; } EXPORT_SYMBOL(bman_new_pool); +#ifdef __rtems__ +struct bman_pool * +bman_new_pool_for_bpid(u8 bpid) +{ + struct bman_pool *pool; + + pool = malloc(sizeof(*pool), M_KMALLOC, M_WAITOK | M_ZERO); + pool->bpid = bpid; + return (pool); +} +#endif /* __rtems__ */ void bman_free_pool(struct bman_pool *pool) { -- cgit v1.2.3