[PATCH 06/12] drivers/soc: Add Aspeed XDMA Engine Driver

Andrew Jeffery andrew at aj.id.au
Mon Nov 25 11:01:13 AEDT 2019


> > +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


More information about the Linux-aspeed mailing list