summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/imx/imx-media-dev-common.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:50:01 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-27 10:01:07 +0200
commitdecb929f46366eae4f73d0deeb5aaccd114b10ba (patch)
tree712dffec650eac9fa10abed7baca33957315825a /drivers/staging/media/imx/imx-media-dev-common.c
parent93bc49d6ec34042124efae3406cdbe43b75f8eb8 (diff)
downloadlinux-stable-decb929f46366eae4f73d0deeb5aaccd114b10ba.tar.gz
linux-stable-decb929f46366eae4f73d0deeb5aaccd114b10ba.tar.bz2
linux-stable-decb929f46366eae4f73d0deeb5aaccd114b10ba.zip
staging: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # tegra-video Acked-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com> Acked-by: Alex Elder <elder@linaro.org> Link: https://lore.kernel.org/r/20230714175002.4064428-1-robh@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/imx/imx-media-dev-common.c')
-rw-r--r--drivers/staging/media/imx/imx-media-dev-common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/media/imx/imx-media-dev-common.c b/drivers/staging/media/imx/imx-media-dev-common.c
index 991820a8500f..7b7cbec08326 100644
--- a/drivers/staging/media/imx/imx-media-dev-common.c
+++ b/drivers/staging/media/imx/imx-media-dev-common.c
@@ -6,8 +6,6 @@
* Copyright (c) 2016 Mentor Graphics Inc.
*/
-#include <linux/of_graph.h>
-#include <linux/of_platform.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-event.h>
#include <media/v4l2-ioctl.h>