diff mbox series

[v1] dmaengine: dw: Don't include unneeded header to platform data header

Message ID 20200721130844.64162-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Headers show
Series [v1] dmaengine: dw: Don't include unneeded header to platform data header | expand

Commit Message

Andy Shevchenko July 21, 2020, 1:08 p.m. UTC
Including device.h is too much for the dma-dw.h platform data header.
Replace it with the headers of which dma-dw.h is direct user.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/platform_data/dma-dw.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Vinod Koul July 27, 2020, 9:16 a.m. UTC | #1
On 21-07-20, 16:08, Andy Shevchenko wrote:
> Including device.h is too much for the dma-dw.h platform data header.
> Replace it with the headers of which dma-dw.h is direct user.

Applied, thanks
diff mbox series

Patch

diff --git a/include/linux/platform_data/dma-dw.h b/include/linux/platform_data/dma-dw.h
index f3eaf9ec00a1..f02a16dfb44b 100644
--- a/include/linux/platform_data/dma-dw.h
+++ b/include/linux/platform_data/dma-dw.h
@@ -8,11 +8,14 @@ 
 #ifndef _PLATFORM_DATA_DMA_DW_H
 #define _PLATFORM_DATA_DMA_DW_H
 
-#include <linux/device.h>
+#include <linux/bits.h>
+#include <linux/types.h>
 
 #define DW_DMA_MAX_NR_MASTERS	4
 #define DW_DMA_MAX_NR_CHANNELS	8
 
+struct device;
+
 /**
  * struct dw_dma_slave - Controller-specific information about a slave
  *