diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2014-03-13 00:47:39 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-18 21:01:57 -0400 |
commit | 07070e12cf5cab46a783a4753f07bb99e557473b (patch) | |
tree | cb60aba7cfcc71d079497a74bdab42bc08fd6105 | |
parent | 730bf5ebb4dfb3ec654bb6c270aa55de70ebf54d (diff) |
ACPI: Remove duplicate definitions of PREFIX
We already have a macro for PREFIX of "ACPI: " in
drivers/acpi/internal.h, so remove the duplicate ones
in ACPI drivers when internal.h is included.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/acpi_cmos_rtc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/container.c | 2 | ||||
-rw-r--r-- | drivers/acpi/dock.c | 2 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 2 | ||||
-rw-r--r-- | drivers/acpi/pci_link.c | 2 | ||||
-rw-r--r-- | drivers/acpi/pci_root.c | 2 | ||||
-rw-r--r-- | drivers/acpi/power.c | 2 | ||||
-rw-r--r-- | drivers/acpi/processor_core.c | 1 | ||||
-rw-r--r-- | drivers/acpi/processor_driver.c | 2 | ||||
-rw-r--r-- | drivers/acpi/sysfs.c | 2 | ||||
-rw-r--r-- | drivers/acpi/video.c | 2 | ||||
-rw-r--r-- | drivers/acpi/video_detect.c | 2 |
12 files changed, 1 insertions, 22 deletions
diff --git a/drivers/acpi/acpi_cmos_rtc.c b/drivers/acpi/acpi_cmos_rtc.c index 84190ed89c04..961b45d18a5d 100644 --- a/drivers/acpi/acpi_cmos_rtc.c +++ b/drivers/acpi/acpi_cmos_rtc.c | |||
@@ -18,8 +18,6 @@ | |||
18 | 18 | ||
19 | #include "internal.h" | 19 | #include "internal.h" |
20 | 20 | ||
21 | #define PREFIX "ACPI: " | ||
22 | |||
23 | ACPI_MODULE_NAME("cmos rtc"); | 21 | ACPI_MODULE_NAME("cmos rtc"); |
24 | 22 | ||
25 | static const struct acpi_device_id acpi_cmos_rtc_ids[] = { | 23 | static const struct acpi_device_id acpi_cmos_rtc_ids[] = { |
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 368f9ddb8480..dceba8310c4f 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -31,8 +31,6 @@ | |||
31 | 31 | ||
32 | #include "internal.h" | 32 | #include "internal.h" |
33 | 33 | ||
34 | #define PREFIX "ACPI: " | ||
35 | |||
36 | #define _COMPONENT ACPI_CONTAINER_COMPONENT | 34 | #define _COMPONENT ACPI_CONTAINER_COMPONENT |
37 | ACPI_MODULE_NAME("container"); | 35 | ACPI_MODULE_NAME("container"); |
38 | 36 | ||
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 5bfd769fc91f..e6500ace5045 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -35,8 +35,6 @@ | |||
35 | 35 | ||
36 | #include "internal.h" | 36 | #include "internal.h" |
37 | 37 | ||
38 | #define PREFIX "ACPI: " | ||
39 | |||
40 | #define ACPI_DOCK_DRIVER_DESCRIPTION "ACPI Dock Station Driver" | 38 | #define ACPI_DOCK_DRIVER_DESCRIPTION "ACPI Dock Station Driver" |
41 | 39 | ||
42 | ACPI_MODULE_NAME("dock"); | 40 | ACPI_MODULE_NAME("dock"); |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index fc1aa7909690..ee11657b3339 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -52,7 +52,7 @@ | |||
52 | 52 | ||
53 | #define _COMPONENT ACPI_OS_SERVICES | 53 | #define _COMPONENT ACPI_OS_SERVICES |
54 | ACPI_MODULE_NAME("osl"); | 54 | ACPI_MODULE_NAME("osl"); |
55 | #define PREFIX "ACPI: " | 55 | |
56 | struct acpi_os_dpc { | 56 | struct acpi_os_dpc { |
57 | acpi_osd_exec_callback function; | 57 | acpi_osd_exec_callback function; |
58 | void *context; | 58 | void *context; |
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 9418c7a1f786..cfd7581cc19f 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -43,8 +43,6 @@ | |||
43 | 43 | ||
44 | #include "internal.h" | 44 | #include "internal.h" |
45 | 45 | ||
46 | #define PREFIX "ACPI: " | ||
47 | |||
48 | #define _COMPONENT ACPI_PCI_COMPONENT | 46 | #define _COMPONENT ACPI_PCI_COMPONENT |
49 | ACPI_MODULE_NAME("pci_link"); | 47 | ACPI_MODULE_NAME("pci_link"); |
50 | #define ACPI_PCI_LINK_CLASS "pci_irq_routing" | 48 | #define ACPI_PCI_LINK_CLASS "pci_irq_routing" |
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index c1c4102e6478..74e6c4e8cd05 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -39,8 +39,6 @@ | |||
39 | 39 | ||
40 | #include "internal.h" | 40 | #include "internal.h" |
41 | 41 | ||
42 | #define PREFIX "ACPI: " | ||
43 | |||
44 | #define _COMPONENT ACPI_PCI_COMPONENT | 42 | #define _COMPONENT ACPI_PCI_COMPONENT |
45 | ACPI_MODULE_NAME("pci_root"); | 43 | ACPI_MODULE_NAME("pci_root"); |
46 | #define ACPI_PCI_ROOT_CLASS "pci_bridge" | 44 | #define ACPI_PCI_ROOT_CLASS "pci_bridge" |
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index ad7da686e6e6..e0bcfb642b52 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -46,8 +46,6 @@ | |||
46 | #include "sleep.h" | 46 | #include "sleep.h" |
47 | #include "internal.h" | 47 | #include "internal.h" |
48 | 48 | ||
49 | #define PREFIX "ACPI: " | ||
50 | |||
51 | #define _COMPONENT ACPI_POWER_COMPONENT | 49 | #define _COMPONENT ACPI_POWER_COMPONENT |
52 | ACPI_MODULE_NAME("power"); | 50 | ACPI_MODULE_NAME("power"); |
53 | #define ACPI_POWER_CLASS "power_resource" | 51 | #define ACPI_POWER_CLASS "power_resource" |
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index a4eea9a508d3..57e0769656c6 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -15,7 +15,6 @@ | |||
15 | 15 | ||
16 | #include "internal.h" | 16 | #include "internal.h" |
17 | 17 | ||
18 | #define PREFIX "ACPI: " | ||
19 | #define _COMPONENT ACPI_PROCESSOR_COMPONENT | 18 | #define _COMPONENT ACPI_PROCESSOR_COMPONENT |
20 | ACPI_MODULE_NAME("processor_core"); | 19 | ACPI_MODULE_NAME("processor_core"); |
21 | 20 | ||
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index c1c35623550f..7f70f3182d50 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c | |||
@@ -41,8 +41,6 @@ | |||
41 | 41 | ||
42 | #include "internal.h" | 42 | #include "internal.h" |
43 | 43 | ||
44 | #define PREFIX "ACPI: " | ||
45 | |||
46 | #define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80 | 44 | #define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80 |
47 | #define ACPI_PROCESSOR_NOTIFY_POWER 0x81 | 45 | #define ACPI_PROCESSOR_NOTIFY_POWER 0x81 |
48 | #define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82 | 46 | #define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82 |
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 91a32cefb11f..38cb9782d4b8 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c | |||
@@ -12,8 +12,6 @@ | |||
12 | #define _COMPONENT ACPI_SYSTEM_COMPONENT | 12 | #define _COMPONENT ACPI_SYSTEM_COMPONENT |
13 | ACPI_MODULE_NAME("sysfs"); | 13 | ACPI_MODULE_NAME("sysfs"); |
14 | 14 | ||
15 | #define PREFIX "ACPI: " | ||
16 | |||
17 | #ifdef CONFIG_ACPI_DEBUG | 15 | #ifdef CONFIG_ACPI_DEBUG |
18 | /* | 16 | /* |
19 | * ACPI debug sysfs I/F, including: | 17 | * ACPI debug sysfs I/F, including: |
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index b6ba88ed31ae..48c7e8af9c96 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -45,8 +45,6 @@ | |||
45 | 45 | ||
46 | #include "internal.h" | 46 | #include "internal.h" |
47 | 47 | ||
48 | #define PREFIX "ACPI: " | ||
49 | |||
50 | #define ACPI_VIDEO_BUS_NAME "Video Bus" | 48 | #define ACPI_VIDEO_BUS_NAME "Video Bus" |
51 | #define ACPI_VIDEO_DEVICE_NAME "Video Device" | 49 | #define ACPI_VIDEO_DEVICE_NAME "Video Device" |
52 | #define ACPI_VIDEO_NOTIFY_SWITCH 0x80 | 50 | #define ACPI_VIDEO_NOTIFY_SWITCH 0x80 |
diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 19080c8e2f2a..33e3db548a29 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c | |||
@@ -40,8 +40,6 @@ | |||
40 | 40 | ||
41 | #include "internal.h" | 41 | #include "internal.h" |
42 | 42 | ||
43 | #define PREFIX "ACPI: " | ||
44 | |||
45 | ACPI_MODULE_NAME("video"); | 43 | ACPI_MODULE_NAME("video"); |
46 | #define _COMPONENT ACPI_VIDEO_COMPONENT | 44 | #define _COMPONENT ACPI_VIDEO_COMPONENT |
47 | 45 | ||