diff options
Diffstat (limited to 'include/linux/dma/hsu.h')
-rw-r--r-- | include/linux/dma/hsu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/dma/hsu.h b/include/linux/dma/hsu.h index 234393a6997b..79df69dc629c 100644 --- a/include/linux/dma/hsu.h +++ b/include/linux/dma/hsu.h | |||
@@ -35,14 +35,23 @@ struct hsu_dma_chip { | |||
35 | unsigned int length; | 35 | unsigned int length; |
36 | unsigned int offset; | 36 | unsigned int offset; |
37 | struct hsu_dma *hsu; | 37 | struct hsu_dma *hsu; |
38 | struct hsu_dma_platform_data *pdata; | ||
39 | }; | 38 | }; |
40 | 39 | ||
40 | #if IS_ENABLED(CONFIG_HSU_DMA) | ||
41 | /* Export to the internal users */ | 41 | /* Export to the internal users */ |
42 | irqreturn_t hsu_dma_irq(struct hsu_dma_chip *chip, unsigned short nr); | 42 | irqreturn_t hsu_dma_irq(struct hsu_dma_chip *chip, unsigned short nr); |
43 | 43 | ||
44 | /* Export to the platform drivers */ | 44 | /* Export to the platform drivers */ |
45 | int hsu_dma_probe(struct hsu_dma_chip *chip); | 45 | int hsu_dma_probe(struct hsu_dma_chip *chip); |
46 | int hsu_dma_remove(struct hsu_dma_chip *chip); | 46 | int hsu_dma_remove(struct hsu_dma_chip *chip); |
47 | #else | ||
48 | static inline irqreturn_t hsu_dma_irq(struct hsu_dma_chip *chip, | ||
49 | unsigned short nr) | ||
50 | { | ||
51 | return IRQ_NONE; | ||
52 | } | ||
53 | static inline int hsu_dma_probe(struct hsu_dma_chip *chip) { return -ENODEV; } | ||
54 | static inline int hsu_dma_remove(struct hsu_dma_chip *chip) { return 0; } | ||
55 | #endif /* CONFIG_HSU_DMA */ | ||
47 | 56 | ||
48 | #endif /* _DMA_HSU_H */ | 57 | #endif /* _DMA_HSU_H */ |