diff options
author | Rob Herring <robh@kernel.org> | 2023-07-14 11:46:50 -0600 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-07-28 10:02:32 +0100 |
commit | 3192f141240336dd6d7675ff374757006fed1916 (patch) | |
tree | 48a096fd71b60fc5a0872cfc1701ffaf5851c1d0 /drivers/leds/leds-ariel.c | |
parent | 3c19c79146e1522f52918a5d335523e48f669a1b (diff) |
leds: 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/20230714174651.4058753-1-robh@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-ariel.c')
-rw-r--r-- | drivers/leds/leds-ariel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-ariel.c b/drivers/leds/leds-ariel.c index 49e1bddaa15e..dd319c7e385f 100644 --- a/drivers/leds/leds-ariel.c +++ b/drivers/leds/leds-ariel.c @@ -7,8 +7,8 @@ #include <linux/module.h> #include <linux/leds.h> +#include <linux/platform_device.h> #include <linux/regmap.h> -#include <linux/of_platform.h> enum ec_index { EC_BLUE_LED = 0x01, |