]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
i2c: Add module.h to modular files prev. implicitly getting it
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sat, 30 Jul 2011 04:14:30 +0000 (21:14 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:29 +0000 (19:31 -0400)
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>
drivers/i2c/busses/i2c-pxa-pci.c
drivers/i2c/busses/i2c-sh7760.c
drivers/i2c/busses/i2c-tegra.c

index b73da6cd6f915008384d9fd3f20b95ca4d41db8d..632e088760a3fc006147f375bd97d15b453fe961 100644 (file)
@@ -3,6 +3,7 @@
  * It does not support slave mode, the register slightly moved. This PCI
  * device provides three bars, every contains a single I2C controller.
  */
+#include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 #include <linux/i2c/pxa-i2c.h>
index 3cad8fecc3d3ced40637d8460ebc01afa70dc7dc..4cd0a1d441297880e6ba23aecbe6572d982512d2 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/io.h>
+#include <linux/module.h>
 
 #include <asm/clock.h>
 #include <asm/i2c-sh7760.h>
index 3c94c4a81a554563daecc1d872f044886b09fb1b..b402435e9259e155663ca939b9287e30b6601465 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/slab.h>
 #include <linux/i2c-tegra.h>
 #include <linux/of_i2c.h>
+#include <linux/module.h>
 
 #include <asm/unaligned.h>