net/stmmac: Move "#include <linux/platform_device.h>" to linux/stmmac.h
authorViresh KUMAR <viresh.kumar@st.com>
Mon, 2 May 2011 18:36:45 +0000 (18:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2011 23:09:40 +0000 (16:09 -0700)
stmmac.h uses struct platform_device and doesn't include
<linux/platform_device.h>. Whereas drivers/net/stmmac/stmmac.h includes it, but
doesn't directly use it. And so we get following compilation warning while using
this file:
warning: ‘struct platform_device’ declared inside parameter list

This patch includes <linux/platform_device.h> in linux/stmmac.h and removes it
from drivers/net/stmmac/stmmac.h

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac.h
include/linux/stmmac.h

index 5f06c4706abef67647d82df14392ec692ab0ab84..2b076b313622c29dfa54c8eb3798999af4aeafd9 100644 (file)
@@ -21,7 +21,6 @@
 *******************************************************************************/
 
 #define DRV_MODULE_VERSION     "Nov_2010"
-#include <linux/platform_device.h>
 #include <linux/stmmac.h>
 
 #include "common.h"
index f29197a4b227f204817696bfcf51e89029c80889..9529e49b0385f9818f28f87845aee27354fb0c24 100644 (file)
@@ -26,6 +26,8 @@
 #ifndef __STMMAC_PLATFORM_DATA
 #define __STMMAC_PLATFORM_DATA
 
+#include <linux/platform_device.h>
+
 /* platform data for platform device structure's platform_data field */
 
 /* Private data for the STM on-board ethernet driver */