Commit 136f36c7 authored by Rob Herring's avatar Rob Herring Committed by David S. Miller

net: ti/cpsw: Add explicit platform_device.h and of_platform.h includes

TI CPSW uses of_platform_* functions which are declared in of_platform.h.
of_platform.h gets implicitly included by of_device.h, but that is going
to be removed soon. Nothing else depends on of_device.h so it can be
dropped. of_platform.h also implicitly includes platform_device.h, so
add an explicit include for it, too.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a56ef256
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_mdio.h> #include <linux/of_mdio.h>
#include <linux/of_net.h> #include <linux/of_net.h>
#include <linux/of_device.h> #include <linux/of_platform.h>
#include <linux/if_vlan.h> #include <linux/if_vlan.h>
#include <linux/kmemleak.h> #include <linux/kmemleak.h>
#include <linux/sys_soc.h> #include <linux/sys_soc.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/platform_device.h>
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/irqreturn.h> #include <linux/irqreturn.h>
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_mdio.h> #include <linux/of_mdio.h>
#include <linux/of_net.h> #include <linux/of_net.h>
#include <linux/of_device.h> #include <linux/of_platform.h>
#include <linux/if_vlan.h> #include <linux/if_vlan.h>
#include <linux/kmemleak.h> #include <linux/kmemleak.h>
#include <linux/sys_soc.h> #include <linux/sys_soc.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment