summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2011-07-29 08:05:38 +0200
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-11-01 00:31:56 +0100
commit2c8d667a3102ad0ed3f104d41277c55873297091 (patch)
tree8827a13a19305d3c9198d033ae212bd4e4f62cc3
parentdrivers/of: Add module.h to of_spi.c (diff)
downloadlinux-2c8d667a3102ad0ed3f104d41277c55873297091.tar.xz
linux-2c8d667a3102ad0ed3f104d41277c55873297091.zip
drivers/of: include export.h for EXPORT_SYMBOL_GPL/THIS_MODULE as required
For files that were getting these macros via the implicit presence of module.h being everywhere. With contributions from Stephen Rothwell <sfr@canb.auug.org.au>. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--drivers/of/of_net.c1
-rw-r--r--drivers/of/of_pci_irq.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c
index bb184717588f..ffab033d207e 100644
--- a/drivers/of/of_net.c
+++ b/drivers/of/of_net.c
@@ -9,6 +9,7 @@
#include <linux/kernel.h>
#include <linux/of_net.h>
#include <linux/phy.h>
+#include <linux/export.h>
/**
* It maps 'enum phy_interface_t' found in include/linux/phy.h
diff --git a/drivers/of/of_pci_irq.c b/drivers/of/of_pci_irq.c
index ac1ec54e4fd5..93125163dea2 100644
--- a/drivers/of/of_pci_irq.c
+++ b/drivers/of/of_pci_irq.c
@@ -1,6 +1,7 @@
#include <linux/kernel.h>
#include <linux/of_pci.h>
#include <linux/of_irq.h>
+#include <linux/export.h>
#include <asm/prom.h>
/**