device.h: cleanup users outside of linux/include (C files)
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 22 Jan 2012 16:23:42 +0000 (11:23 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 11 Mar 2012 18:27:37 +0000 (14:27 -0400)
For files that are actively using linux/device.h, make sure
that they call it out.  This will allow us to clean up some
of the implicit uses of linux/device.h within include/*
without introducing build regressions.

Yes, this was created by "cheating" -- i.e. the headers were
cleaned up, and then the fallout was found and fixed, and then
the two commits were reordered.  This ensures we don't introduce
build regressions into the git history.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
21 files changed:
drivers/base/power/clock_ops.c
drivers/base/power/common.c
drivers/base/power/opp.c
drivers/base/regmap/regcache-lzo.c
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap-debugfs.c
drivers/base/regmap/regmap-irq.c
drivers/base/regmap/regmap.c
drivers/edac/edac_stub.c
drivers/edac/mce_amd_inj.c
drivers/mfd/wm8994-regmap.c
drivers/power/apm_power.c
drivers/power/power_supply.h
drivers/power/power_supply_leds.c
drivers/power/power_supply_sysfs.c
net/rfkill/core.c
sound/core/init.c
sound/core/pcm.c
sound/core/seq/seq.c
sound/core/timer.c

index 428e55e012dcd06f91ade3154c941aab6f1d5bb5..869d7ff2227f8aa87ba5a390644558e7e0585099 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/init.h>
 #include <linux/kernel.h>
+#include <linux/device.h>
 #include <linux/io.h>
 #include <linux/pm.h>
 #include <linux/pm_clock.h>
index 4af7c1cbf909b61d576bc0900df85983d2eedf9d..a14085cc613fdfd2116afeb9da0f620b96c492f7 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/init.h>
 #include <linux/kernel.h>
+#include <linux/device.h>
 #include <linux/export.h>
 #include <linux/slab.h>
 #include <linux/pm_clock.h>
index 95706fa24c73559ecd04aacf8c0a6296616c452f..ac993eafec82ecd707cfc6e2654b5a8f30703fc6 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/cpufreq.h>
+#include <linux/device.h>
 #include <linux/list.h>
 #include <linux/rculist.h>
 #include <linux/rcupdate.h>
index b7d16143edeb19b27ffe227535afdc9a555890d5..51f6f28dadf1051d42b6a6273b7ca8cc0eb17665 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/slab.h>
+#include <linux/device.h>
 #include <linux/lzo.h>
 
 #include "internal.h"
index 32620c4f16834112ab88c9f9741750aee94f26d6..b487c29a67dc1b2577f21244302531d92d910f1f 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/slab.h>
+#include <linux/device.h>
 #include <linux/debugfs.h>
 #include <linux/rbtree.h>
 #include <linux/seq_file.h>
index 1ead66186b7c0a90586f223b0b9bc23d3770a3ed..214f704c34db0353abfd9f5afbdb52d64f9123e6 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <linux/slab.h>
 #include <linux/export.h>
+#include <linux/device.h>
 #include <trace/events/regmap.h>
 #include <linux/bsearch.h>
 #include <linux/sort.h>
index 6f397476e27c010fd938dfd05b84eb68fcef7c77..8c90a83ae24f8a3961d3c214c57f2b50c6da125c 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mutex.h>
 #include <linux/debugfs.h>
 #include <linux/uaccess.h>
+#include <linux/device.h>
 
 #include "internal.h"
 
index 428836fc58356e8857ada8029e6d2df5cf1e63b9..1befaa7a31cbdeacb76a7a67f17540799f523d6b 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/export.h>
+#include <linux/device.h>
 #include <linux/regmap.h>
 #include <linux/irq.h>
 #include <linux/interrupt.h>
index be10a4ff660915625454375ce9fb30a97d5b7ef9..87f9e1129ae94572eab962c0e603aaccbd4c2815 100644 (file)
@@ -10,6 +10,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/device.h>
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
index 670c4481453bc2ba7dc690bb505097cfdfa1dca4..6c86f6e545587202d3a9f729457ef38314490f70 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/module.h>
 #include <linux/edac.h>
 #include <linux/atomic.h>
+#include <linux/device.h>
 #include <asm/edac.h>
 
 int edac_op_state = EDAC_OPSTATE_INVAL;
index 885e8ad8fdcf94679c3631db3c319d0fff7ac618..66b5151c10807083e1e724cb58cc384cdde2f11c 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/kobject.h>
+#include <linux/device.h>
 #include <linux/edac.h>
 #include <linux/module.h>
 #include <asm/mce.h>
index c598ae69b8ff052584c94e75b44db9f07ea8d694..0c0a215f3fdd9f92ac595fb57d147f2b9395dcc6 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mfd/wm8994/core.h>
 #include <linux/mfd/wm8994/registers.h>
 #include <linux/regmap.h>
+#include <linux/device.h>
 
 #include "wm8994.h"
 
index 8a612dec9139d27b4e0a814be38b6c71d6954fca..39763015b3601cdd0333f585cc482beacbe7ae49 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/device.h>
 #include <linux/power_supply.h>
 #include <linux/apm-emulation.h>
 
index 018de2b26998e9b326c0f0a434c4e2b39182422a..cc439fd89d8dda469c52795bcc59074245b1cec8 100644 (file)
  *  You may use this code as per GPL version 2
  */
 
+struct device;
+struct device_type;
+struct power_supply;
+
 #ifdef CONFIG_SYSFS
 
 extern void power_supply_init_attrs(struct device_type *dev_type);
index da25eb94e5c6487907fc4fecb175b73059a8677a..995f966ed5b7a8be444e99ed0dff6d1b22d5934c 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/device.h>
 #include <linux/power_supply.h>
 #include <linux/slab.h>
 
index b52b57ca3084737fcced57eca769783bc435a3fd..4368e7d61316bb37c9a3565ca1c0400964aa6781 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <linux/ctype.h>
+#include <linux/device.h>
 #include <linux/power_supply.h>
 #include <linux/slab.h>
 #include <linux/stat.h>
index 354760ebbbd254f1409a196e7c27140c0512e5e9..f974961754ca90df62dcc685db2d037b910091b8 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/rfkill.h>
 #include <linux/sched.h>
 #include <linux/spinlock.h>
+#include <linux/device.h>
 #include <linux/miscdevice.h>
 #include <linux/wait.h>
 #include <linux/poll.h>
index 3ac49b1b7cb82ac4c6c6632691efb9d3178cb09e..995fc5d4b1a3966761c21c84ca2e7c60237167ae 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/module.h>
+#include <linux/device.h>
 #include <linux/file.h>
 #include <linux/slab.h>
 #include <linux/time.h>
index 8928ca871c223f17da58f086a75e3b52d1edcf11..1888a90bd5b6d5fd9155eaae247ffbb06e74ceec 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/module.h>
 #include <linux/time.h>
 #include <linux/mutex.h>
+#include <linux/device.h>
 #include <sound/core.h>
 #include <sound/minors.h>
 #include <sound/pcm.h>
index 9d8379aedf4054cd5a1acde9e6140d9e2a604e95..7121105610826eef0931426129788f6bb9696ffc 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/device.h>
 #include <sound/core.h>
 #include <sound/initval.h>
 
index 8e7561dfc5fc97f4d650a3b8d35bb52b2804f9d0..6ddcf06f52f9a0c710cfbd65157915e5d90b14a4 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/slab.h>
 #include <linux/time.h>
 #include <linux/mutex.h>
+#include <linux/device.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <sound/core.h>