summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/nsa320-hwmon.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 19:46:04 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-08-21 15:04:29 +0200
commit39f034386fc023780a505ed02ca40e57e4031e23 (patch)
tree176226fc029405c0df362797a85c14ec591449e6 /drivers/hwmon/nsa320-hwmon.c
parenthwmon: (lan966x) Use the devm_clk_get_enabled() helper function (diff)
downloadlinux-39f034386fc023780a505ed02ca40e57e4031e23.tar.xz
linux-39f034386fc023780a505ed02ca40e57e4031e23.zip
hwmon: 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> Link: https://lore.kernel.org/r/20230714174607.4057185-1-robh@kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/nsa320-hwmon.c')
-rw-r--r--drivers/hwmon/nsa320-hwmon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/nsa320-hwmon.c b/drivers/hwmon/nsa320-hwmon.c
index ebe6b031e56f..e26334469549 100644
--- a/drivers/hwmon/nsa320-hwmon.c
+++ b/drivers/hwmon/nsa320-hwmon.c
@@ -20,8 +20,6 @@
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
#include <linux/platform_device.h>
/* Tests for error return values rely upon this value being < 0x80 */