Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rob Herring <robh@kernel.org>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rob Herring and committed by
David S. Miller
136f36c7 a56ef256

+3 -2
+1 -1
drivers/net/ethernet/ti/cpsw.c
··· 27 27 #include <linux/of.h> 28 28 #include <linux/of_mdio.h> 29 29 #include <linux/of_net.h> 30 - #include <linux/of_device.h> 30 + #include <linux/of_platform.h> 31 31 #include <linux/if_vlan.h> 32 32 #include <linux/kmemleak.h> 33 33 #include <linux/sys_soc.h>
+2 -1
drivers/net/ethernet/ti/cpsw_new.c
··· 7 7 8 8 #include <linux/io.h> 9 9 #include <linux/clk.h> 10 + #include <linux/platform_device.h> 10 11 #include <linux/timer.h> 11 12 #include <linux/module.h> 12 13 #include <linux/irqreturn.h> ··· 24 23 #include <linux/of.h> 25 24 #include <linux/of_mdio.h> 26 25 #include <linux/of_net.h> 27 - #include <linux/of_device.h> 26 + #include <linux/of_platform.h> 28 27 #include <linux/if_vlan.h> 29 28 #include <linux/kmemleak.h> 30 29 #include <linux/sys_soc.h>