platform: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:49:09 +0000 (11:49 -0600)
committerHans de Goede <hdegoede@redhat.com>
Wed, 26 Jul 2023 08:58:36 +0000 (10:58 +0200)
commitb9fe9c9ef97dcf9c87e778c2f5348d3be52091fc
tree1d5cad4df123d17547810682b2ed1b9b194cc4f7
parent81ad56950b7648c103940e74a8476bc71d4f9c55
platform: 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: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20230714174909.4062739-1-robh@kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/chrome/cros_ec.c
drivers/platform/mellanox/mlxreg-hotplug.c
drivers/platform/mellanox/mlxreg-io.c