Hi Niklas, > + if (!dev->dma_parms) { > + dev->dma_parms = kzalloc(sizeof(*dev->dma_parms), GFP_KERNEL); Can't we use devm_kzalloc and skip the custom remove function? Thanks, Wolfram
Attachment:
signature.asc
Description: PGP signature
Hi Niklas, > + if (!dev->dma_parms) { > + dev->dma_parms = kzalloc(sizeof(*dev->dma_parms), GFP_KERNEL); Can't we use devm_kzalloc and skip the custom remove function? Thanks, Wolfram
Attachment:
signature.asc
Description: PGP signature