提交 93cf5d75 编写于 作者: P Paul Gortmaker

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: NPaul Gortmaker <paul.gortmaker@windriver.com>
上级 345df512
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* It does not support slave mode, the register slightly moved. This PCI * It does not support slave mode, the register slightly moved. This PCI
* device provides three bars, every contains a single I2C controller. * device provides three bars, every contains a single I2C controller.
*/ */
#include <linux/module.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/i2c/pxa-i2c.h> #include <linux/i2c/pxa-i2c.h>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/module.h>
#include <asm/clock.h> #include <asm/clock.h>
#include <asm/i2c-sh7760.h> #include <asm/i2c-sh7760.h>
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/i2c-tegra.h> #include <linux/i2c-tegra.h>
#include <linux/of_i2c.h> #include <linux/of_i2c.h>
#include <linux/module.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册