drm/bridge: aux-hpd: Replace of_device.h with explicit include
Subsystems (3)
PATCH 1/1 drm/bridge: aux-hpd: Replace of_device.h with explicit include
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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. Soon the implicit includes are going to be removed.
of_device.h isn't needed, but of.h is for of_node_put().
--- drivers/gpu/drm/bridge/aux-hpd-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/aux-hpd-bridge.c +1 -1
@@ -6,7 +6,7 @@*/ #include <linux/auxiliary_bus.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <drm/drm_bridge.h> #include <drm/bridge/aux-bridge.h>
Signature · 1 line
2.42.0
Quoted 10 lines · Rob Herring
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it was 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 includeplatform_device.handof.h. Soon the implicit includes are going to be removed.
of_device.hisn't needed, butof.his forof_node_put().Reported-by Stephen Rothwell <[email protected]>Signed-off-by Rob Herring <[email protected]>
Quoted 3 lines
--- drivers/gpu/drm/bridge/aux-hpd-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes Dmitry