[PATCH master 09/23] dma: remove linux/kernel.h dependency from dma.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To prepare having linux/kernel.h transitively depend on dma.h, remove
dependency of dma.h on linux/kernel.h.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 drivers/dma/debug.c | 1 +
 drivers/dma/map.c   | 1 +
 include/dma.h       | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/debug.c b/drivers/dma/debug.c
index e524dc4127ce..f4272e8f5822 100644
--- a/drivers/dma/debug.c
+++ b/drivers/dma/debug.c
@@ -2,6 +2,7 @@
 
 #include <dma.h>
 #include <linux/list.h>
+#include <linux/printk.h>
 #include "debug.h"
 
 static LIST_HEAD(dma_mappings);
diff --git a/drivers/dma/map.c b/drivers/dma/map.c
index e2656a27f183..cd0f5c3d3497 100644
--- a/drivers/dma/map.c
+++ b/drivers/dma/map.c
@@ -1,5 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 #include <dma.h>
+#include <driver.h>
 #include "debug.h"
 
 void *dma_alloc(size_t size)
diff --git a/include/dma.h b/include/dma.h
index a69072280bd5..4fcd114bb6b5 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -8,12 +8,12 @@
 
 #include <malloc.h>
 #include <xfuncs.h>
-#include <linux/kernel.h>
+#include <linux/align.h>
 
 #include <dma-dir.h>
 #include <asm/dma.h>
 #include <asm/io.h>
-#include <driver.h>
+#include <device.h>
 
 #define DMA_ADDRESS_BROKEN	NULL
 
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux