You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sh: Fix up MAX_DMA_CHANNELS definition when DMA is disabled.
MAX_DMA_CHANNELS is tested for the total number of channels in order to populate an IRQ map. Stub this out completely when no DMA support is enabled -- as used to be the default behaviour before this was generalized for use by the dmaengine code. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -19,9 +19,11 @@
|
|||||||
#include <asm-generic/dma.h>
|
#include <asm-generic/dma.h>
|
||||||
|
|
||||||
#ifdef CONFIG_NR_DMA_CHANNELS
|
#ifdef CONFIG_NR_DMA_CHANNELS
|
||||||
# define MAX_DMA_CHANNELS (CONFIG_NR_DMA_CHANNELS)
|
# define MAX_DMA_CHANNELS (CONFIG_NR_DMA_CHANNELS)
|
||||||
|
#elif defined(CONFIG_NR_ONCHIP_DMA_CHANNELS)
|
||||||
|
# define MAX_DMA_CHANNELS (CONFIG_NR_ONCHIP_DMA_CHANNELS)
|
||||||
#else
|
#else
|
||||||
# define MAX_DMA_CHANNELS (CONFIG_NR_ONCHIP_DMA_CHANNELS)
|
# define MAX_DMA_CHANNELS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user