aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2011-07-30 00:14:30 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-10-31 19:31:29 -0400
commit93cf5d75b9d0b703ca8f4f8f98303ad77ab20d26 (patch)
tree63c507fd557732ba83cf61d095425bac35d7ed4e /drivers
parent345df5126e5cf46c8ddf2ec491f1d6e17e29e645 (diff)
i2c: Add module.h to modular files prev. implicitly getting it
These files use interfaces from linux/module.h, so they must include that file to avoid build errors when the implicit presence of module.h is removed. [with i2c-pxa-pci.c fix from Randy Dunlap <rdunlap@xenotime.net>] Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-pxa-pci.c1
-rw-r--r--drivers/i2c/busses/i2c-sh7760.c1
-rw-r--r--drivers/i2c/busses/i2c-tegra.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-pxa-pci.c b/drivers/i2c/busses/i2c-pxa-pci.c
index b73da6cd6f91..632e088760a3 100644
--- a/drivers/i2c/busses/i2c-pxa-pci.c
+++ b/drivers/i2c/busses/i2c-pxa-pci.c
@@ -3,6 +3,7 @@
3 * It does not support slave mode, the register slightly moved. This PCI 3 * It does not support slave mode, the register slightly moved. This PCI
4 * device provides three bars, every contains a single I2C controller. 4 * device provides three bars, every contains a single I2C controller.
5 */ 5 */
6#include <linux/module.h>
6#include <linux/pci.h> 7#include <linux/pci.h>
7#include <linux/platform_device.h> 8#include <linux/platform_device.h>
8#include <linux/i2c/pxa-i2c.h> 9#include <linux/i2c/pxa-i2c.h>
diff --git a/drivers/i2c/busses/i2c-sh7760.c b/drivers/i2c/busses/i2c-sh7760.c
index 3cad8fecc3d3..4cd0a1d44129 100644
--- a/drivers/i2c/busses/i2c-sh7760.c
+++ b/drivers/i2c/busses/i2c-sh7760.c
@@ -17,6 +17,7 @@
17#include <linux/platform_device.h> 17#include <linux/platform_device.h>
18#include <linux/slab.h> 18#include <linux/slab.h>
19#include <linux/io.h> 19#include <linux/io.h>
20#include <linux/module.h>
20 21
21#include <asm/clock.h> 22#include <asm/clock.h>
22#include <asm/i2c-sh7760.h> 23#include <asm/i2c-sh7760.h>
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 3c94c4a81a55..b402435e9259 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -27,6 +27,7 @@
27#include <linux/slab.h> 27#include <linux/slab.h>
28#include <linux/i2c-tegra.h> 28#include <linux/i2c-tegra.h>
29#include <linux/of_i2c.h> 29#include <linux/of_i2c.h>
30#include <linux/module.h>
30 31
31#include <asm/unaligned.h> 32#include <asm/unaligned.h>
32 33