diff options
author | Rob Herring <robh@kernel.org> | 2023-07-14 20:47:49 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-07-27 18:03:41 +0300 |
commit | c2fc6b6947905eee832e9ef445df4803f0056cc6 (patch) | |
tree | f5d672c3793a01c9f884c0f72a1a1b649f7d2cfd /drivers/mtd/maps/physmap-ixp4xx.h | |
parent | de2a5d52f2c052814349013e8a77d1bc02717d74 (diff) | |
download | linux-c2fc6b6947905eee832e9ef445df4803f0056cc6.tar.xz |
mtd: 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 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. 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: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230714174751.4060439-1-robh@kernel.org
Diffstat (limited to 'drivers/mtd/maps/physmap-ixp4xx.h')
-rw-r--r-- | drivers/mtd/maps/physmap-ixp4xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap-ixp4xx.h b/drivers/mtd/maps/physmap-ixp4xx.h index b0fc49b7f3ed..46824c57e58a 100644 --- a/drivers/mtd/maps/physmap-ixp4xx.h +++ b/drivers/mtd/maps/physmap-ixp4xx.h @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/of.h> +#include <linux/platform_device.h> #include <linux/mtd/map.h> #ifdef CONFIG_MTD_PHYSMAP_IXP4XX |