diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 13:41:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 13:41:37 -0400 |
commit | 250f6715a4112d6686670c5a62ceb9305da94616 (patch) | |
tree | ee1c9b41ed1fed8174efb312421902f19c877e8c /drivers/edac | |
parent | 11bcb32848ddb5ab28f09f142b625e2ba4d55c4c (diff) | |
parent | 313162d0b83836e2f57e51b9b8650fb4b9c396ea (diff) |
Merge tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Pull <linux/device.h> avoidance patches from Paul Gortmaker:
"Nearly every subsystem has some kind of header with a proto like:
void foo(struct device *dev);
and yet there is no reason for most of these guys to care about the
sub fields within the device struct. This allows us to significantly
reduce the scope of headers including headers. For this instance, a
reduction of about 40% is achieved by replacing the include with the
simple fact that the device is some kind of a struct.
Unlike the much larger module.h cleanup, this one is simply two
commits. One to fix the implicit <linux/device.h> users, and then one
to delete the device.h includes from the linux/include/ dir wherever
possible."
* tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
device.h: audit and cleanup users in main include dir
device.h: cleanup users outside of linux/include (C files)
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_stub.c | 1 | ||||
-rw-r--r-- | drivers/edac/mce_amd_inj.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/edac_stub.c b/drivers/edac/edac_stub.c index 670c4481453b..6c86f6e54558 100644 --- a/drivers/edac/edac_stub.c +++ b/drivers/edac/edac_stub.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/edac.h> | 16 | #include <linux/edac.h> |
17 | #include <linux/atomic.h> | 17 | #include <linux/atomic.h> |
18 | #include <linux/device.h> | ||
18 | #include <asm/edac.h> | 19 | #include <asm/edac.h> |
19 | 20 | ||
20 | int edac_op_state = EDAC_OPSTATE_INVAL; | 21 | int edac_op_state = EDAC_OPSTATE_INVAL; |
diff --git a/drivers/edac/mce_amd_inj.c b/drivers/edac/mce_amd_inj.c index 885e8ad8fdcf..66b5151c1080 100644 --- a/drivers/edac/mce_amd_inj.c +++ b/drivers/edac/mce_amd_inj.c | |||
@@ -11,6 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/kobject.h> | 13 | #include <linux/kobject.h> |
14 | #include <linux/device.h> | ||
14 | #include <linux/edac.h> | 15 | #include <linux/edac.h> |
15 | #include <linux/module.h> | 16 | #include <linux/module.h> |
16 | #include <asm/mce.h> | 17 | #include <asm/mce.h> |