These were removed in Linux 5.18, but they were only wrappers around the dma_alloc_coherent API which has been around since Linux 2.6 (and was used elsewhere in cxadc), so there shouldn't be any need for a compatibility test here.
Along with this, make all the allocations use GFP_KERNEL rather than GFP_ATOMIC -- they're being done in module init context so there's no need for the latter.
CC @oyvindln - I've tested that this compiles and loads with Linux 6.1, but I haven't tested a capture since I don't have a card plugged in at the moment...
These were removed in Linux 5.18, but they were only wrappers around the dma_alloc_coherent API which has been around since Linux 2.6 (and was used elsewhere in cxadc), so there shouldn't be any need for a compatibility test here.
Along with this, make all the allocations use GFP_KERNEL rather than GFP_ATOMIC -- they're being done in module init context so there's no need for the latter.
CC @oyvindln - I've tested that this compiles and loads with Linux 6.1, but I haven't tested a capture since I don't have a card plugged in at the moment...
Fixes #28.