Browse Source

device.h: cleanup users outside of linux/include (C files)

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>
imx_3.10.17_1.0.0_ga
Paul Gortmaker 9 years ago
parent
commit
51990e8254
21 changed files with 24 additions and 0 deletions
  1. +1
    -0
      drivers/base/power/clock_ops.c
  2. +1
    -0
      drivers/base/power/common.c
  3. +1
    -0
      drivers/base/power/opp.c
  4. +1
    -0
      drivers/base/regmap/regcache-lzo.c
  5. +1
    -0
      drivers/base/regmap/regcache-rbtree.c
  6. +1
    -0
      drivers/base/regmap/regcache.c
  7. +1
    -0
      drivers/base/regmap/regmap-debugfs.c
  8. +1
    -0
      drivers/base/regmap/regmap-irq.c
  9. +1
    -0
      drivers/base/regmap/regmap.c
  10. +1
    -0
      drivers/edac/edac_stub.c
  11. +1
    -0
      drivers/edac/mce_amd_inj.c
  12. +1
    -0
      drivers/mfd/wm8994-regmap.c
  13. +1
    -0
      drivers/power/apm_power.c
  14. +4
    -0
      drivers/power/power_supply.h
  15. +1
    -0
      drivers/power/power_supply_leds.c
  16. +1
    -0
      drivers/power/power_supply_sysfs.c
  17. +1
    -0
      net/rfkill/core.c
  18. +1
    -0
      sound/core/init.c
  19. +1
    -0
      sound/core/pcm.c
  20. +1
    -0
      sound/core/seq/seq.c
  21. +1
    -0
      sound/core/timer.c

+ 1
- 0
drivers/base/power/clock_ops.c View 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>


+ 1
- 0
drivers/base/power/common.c View 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>


+ 1
- 0
drivers/base/power/opp.c View 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>


+ 1
- 0
drivers/base/regmap/regcache-lzo.c View File

@ -11,6 +11,7 @@
*/
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/lzo.h>
#include "internal.h"


+ 1
- 0
drivers/base/regmap/regcache-rbtree.c View 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>


+ 1
- 0
drivers/base/regmap/regcache.c View 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>


+ 1
- 0
drivers/base/regmap/regmap-debugfs.c View File

@ -15,6 +15,7 @@
#include <linux/mutex.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/device.h>
#include "internal.h"


+ 1
- 0
drivers/base/regmap/regmap-irq.c View 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>


+ 1
- 0
drivers/base/regmap/regmap.c View 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>


+ 1
- 0
drivers/edac/edac_stub.c View 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;


+ 1
- 0
drivers/edac/mce_amd_inj.c View 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>


+ 1
- 0
drivers/mfd/wm8994-regmap.c View 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"


+ 1
- 0
drivers/power/apm_power.c View File

@ -10,6 +10,7 @@
*/
#include <linux/module.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/apm-emulation.h>


+ 4
- 0
drivers/power/power_supply.h View File

@ -10,6 +10,10 @@
* 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);


+ 1
- 0
drivers/power/power_supply_leds.c View File

@ -11,6 +11,7 @@
*/
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>


+ 1
- 0
drivers/power/power_supply_sysfs.c View 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>


+ 1
- 0
net/rfkill/core.c View 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>


+ 1
- 0
sound/core/init.c View 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>


+ 1
- 0
sound/core/pcm.c View 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>


+ 1
- 0
sound/core/seq/seq.c View 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>


+ 1
- 0
sound/core/timer.c View 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>


Loading…
Cancel
Save