firmware: microchip: Replace of_device.h with explicit include
authorRob Herring <robh@kernel.org>
Thu, 7 Dec 2023 16:14:30 +0000 (10:14 -0600)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 7 Dec 2023 16:40:35 +0000 (16:40 +0000)
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 platform_device.h is.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/firmware/microchip/mpfs-auto-update.c

index d56a95b36b85b1976fd420fb53343b2d5be77186..81f5f62e34fce04fb6db2db11294f8281c58f5b7 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/math.h>
 #include <linux/module.h>
 #include <linux/mtd/mtd.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/sizes.h>
 
 #include <soc/microchip/mpfs.h>