]> Pileus Git - ~andy/linux/commitdiff
drivers/power: Add module.h to the actual modules in drivers/power
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 3 Jul 2011 19:28:29 +0000 (15:28 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:56 +0000 (19:31 -0400)
The module.h header is no longer going to be implicitly present
everywhere.  So real modular users need to call out its use
explicitly in advance.

[v2: add new users reported by Randy Dunlap <rdunlap@xenotime.net>]

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/power/max17042_battery.c
drivers/power/max8903_charger.c
drivers/power/max8997_charger.c
drivers/power/max8998_charger.c

index 98bfab35b8e99ab4c020e9dad91b8f6475b79ac2..9f0183c73076852b213b10ea2832bc7e9d74cd3e 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <linux/init.h>
+#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
 #include <linux/mod_devicetable.h>
index a9b0209a2f55042a572fc18b2d34b2cee979ad78..2595145f3bffad80d9cdfba4d50b83df3f41ffa6 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
+#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/power_supply.h>
 #include <linux/platform_device.h>
index ffc5033ea9c92fcbad8957cad81674a376cb1909..a23317d75c5a80e65bec82fdf89bdb1f6499f0a1 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <linux/module.h>
 #include <linux/err.h>
 #include <linux/module.h>
 #include <linux/slab.h>
index ef8efadb58cb1778306e3b977dffc2b585b5c42e..93e3bb47a3a817ac7d1fbf0aa712bb77b0c181fd 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <linux/module.h>
 #include <linux/err.h>
 #include <linux/module.h>
 #include <linux/slab.h>