diff mbox series

dmaengine: qcom_hidma: Add explicit platform_device.h and of_device.h includes

Message ID 20230410232654.1561462-1-robh@kernel.org (mailing list archive)
State New, archived
Headers show
Series dmaengine: qcom_hidma: Add explicit platform_device.h and of_device.h includes | expand

Commit Message

Rob Herring April 10, 2023, 11:26 p.m. UTC
qcom_hidma uses of_dma_configure() which is declared in of_device.h.
platform_device.h and of_device.h get implicitly included by of_platform.h,
but that is going to be removed soon.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/dma/qcom/hidma_mgmt.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sinan Kaya April 11, 2023, 1:07 a.m. UTC | #1
On Mon, 2023-04-10 at 18:26 -0500, Rob Herring wrote:
> qcom_hidma uses of_dma_configure() which is declared in of_device.h.
> 
> platform_device.h and of_device.h get implicitly included by
> of_platform.h,
> 
> but that is going to be removed soon.
> 
> 
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> 
> ---

Acked-by: Sinan Kaya <okaya@kernel.org>
Vinod Koul April 12, 2023, 5:13 p.m. UTC | #2
On 10-04-23, 18:26, Rob Herring wrote:
> qcom_hidma uses of_dma_configure() which is declared in of_device.h.
> platform_device.h and of_device.h get implicitly included by of_platform.h,
> but that is going to be removed soon.

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c
index 62026607f3f8..05e96b31d871 100644
--- a/drivers/dma/qcom/hidma_mgmt.c
+++ b/drivers/dma/qcom/hidma_mgmt.c
@@ -12,6 +12,8 @@ 
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
+#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/module.h>
 #include <linux/uaccess.h>
 #include <linux/slab.h>