lkml.org 
[lkml]   [2019]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/12] drivers/soc: Add Aspeed XDMA Engine Driver

> > +static int aspeed_xdma_remove(struct platform_device *pdev)
> > +{
> > + struct aspeed_xdma *ctx = platform_get_drvdata(pdev);
> > +
> > + gen_pool_free(ctx->vga_pool, (unsigned long)ctx->cmdq_vga_virt,
> > + XDMA_CMDQ_SIZE);
>
> You've used devm_gen_pool_create(), so no need to explicitly free it.

Sorry, disregard that, brain-fart.

Andrew

\
 
 \ /
  Last update: 2019-11-25 01:00    [W:0.089 / U:24.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site