drivers/net: include <module.h> for modular stmmac_platform code
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 1 May 2015 01:47:42 +0000 (21:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 03:40:09 +0000 (23:40 -0400)
This file is built off of a tristate Kconfig option and also contains
modular function calls so it should explicitly include module.h to
avoid compile breakage during header shuffles done in the future.

Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 705bbdf..68aec5c 100644 (file)
@@ -23,6 +23,7 @@
 *******************************************************************************/
 
 #include <linux/platform_device.h>
+#include <linux/module.h>
 #include <linux/io.h>
 #include <linux/of.h>
 #include <linux/of_net.h>