diff options
-rw-r--r-- | arch/ia64/kernel/acpi.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 3 | ||||
-rw-r--r-- | drivers/acpi/Kconfig | 12 | ||||
-rw-r--r-- | drivers/acpi/bay.c | 4 | ||||
-rw-r--r-- | drivers/acpi/bus.c | 1 | ||||
-rw-r--r-- | drivers/acpi/dock.c | 8 | ||||
-rw-r--r-- | drivers/acpi/glue.c | 4 | ||||
-rw-r--r-- | drivers/acpi/numa.c | 3 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 18 | ||||
-rw-r--r-- | drivers/acpi/pci_bind.c | 4 | ||||
-rw-r--r-- | drivers/acpi/pci_irq.c | 2 | ||||
-rw-r--r-- | drivers/acpi/pci_link.c | 2 | ||||
-rw-r--r-- | drivers/acpi/sbs.c | 2 | ||||
-rw-r--r-- | drivers/acpi/sbshc.c | 4 | ||||
-rw-r--r-- | drivers/acpi/scan.c | 10 | ||||
-rw-r--r-- | include/acpi/acmacros.h | 6 | ||||
-rw-r--r-- | include/acpi/acpi_drivers.h | 1 | ||||
-rw-r--r-- | include/acpi/acpi_numa.h | 1 | ||||
-rw-r--r-- | include/linux/acpi.h | 14 |
19 files changed, 30 insertions, 73 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index 90680255032e..78f28d825f30 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c | |||
@@ -615,8 +615,6 @@ int acpi_register_gsi(u32 gsi, int triggering, int polarity) | |||
615 | IOSAPIC_LEVEL); | 615 | IOSAPIC_LEVEL); |
616 | } | 616 | } |
617 | 617 | ||
618 | EXPORT_SYMBOL(acpi_register_gsi); | ||
619 | |||
620 | void acpi_unregister_gsi(u32 gsi) | 618 | void acpi_unregister_gsi(u32 gsi) |
621 | { | 619 | { |
622 | if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM) | 620 | if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM) |
@@ -625,8 +623,6 @@ void acpi_unregister_gsi(u32 gsi) | |||
625 | iosapic_unregister_intr(gsi); | 623 | iosapic_unregister_intr(gsi); |
626 | } | 624 | } |
627 | 625 | ||
628 | EXPORT_SYMBOL(acpi_unregister_gsi); | ||
629 | |||
630 | static int __init acpi_parse_fadt(struct acpi_table_header *table) | 626 | static int __init acpi_parse_fadt(struct acpi_table_header *table) |
631 | { | 627 | { |
632 | struct acpi_table_header *fadt_header; | 628 | struct acpi_table_header *fadt_header; |
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index f3e049ea86eb..680b7300a489 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -78,7 +78,6 @@ int acpi_ht __initdata = 1; /* enable HT */ | |||
78 | int acpi_lapic; | 78 | int acpi_lapic; |
79 | int acpi_ioapic; | 79 | int acpi_ioapic; |
80 | int acpi_strict; | 80 | int acpi_strict; |
81 | EXPORT_SYMBOL(acpi_strict); | ||
82 | 81 | ||
83 | u8 acpi_sci_flags __initdata; | 82 | u8 acpi_sci_flags __initdata; |
84 | int acpi_sci_override_gsi __initdata; | 83 | int acpi_sci_override_gsi __initdata; |
@@ -490,8 +489,6 @@ int acpi_register_gsi(u32 gsi, int triggering, int polarity) | |||
490 | return irq; | 489 | return irq; |
491 | } | 490 | } |
492 | 491 | ||
493 | EXPORT_SYMBOL(acpi_register_gsi); | ||
494 | |||
495 | /* | 492 | /* |
496 | * ACPI based hotplug support for CPU | 493 | * ACPI based hotplug support for CPU |
497 | */ | 494 | */ |
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 0065f3794576..d141bdb3a7d4 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
@@ -68,26 +68,28 @@ config ACPI_PROCFS | |||
68 | 68 | ||
69 | Say N to delete /proc/acpi/ files that have moved to /sys/ | 69 | Say N to delete /proc/acpi/ files that have moved to /sys/ |
70 | config ACPI_PROCFS_POWER | 70 | config ACPI_PROCFS_POWER |
71 | bool "Deprecated power /proc/acpi folders" | 71 | bool "Deprecated power /proc/acpi directories" |
72 | depends on PROC_FS | 72 | depends on PROC_FS |
73 | default y | 73 | default y |
74 | ---help--- | 74 | ---help--- |
75 | For backwards compatibility, this option allows | 75 | For backwards compatibility, this option allows |
76 | deprecated power /proc/acpi/ folders to exist, even when | 76 | deprecated power /proc/acpi/ directories to exist, even when |
77 | they have been replaced by functions in /sys. | 77 | they have been replaced by functions in /sys. |
78 | The deprecated folders (and their replacements) include: | 78 | The deprecated directories (and their replacements) include: |
79 | /proc/acpi/battery/* (/sys/class/power_supply/*) | 79 | /proc/acpi/battery/* (/sys/class/power_supply/*) |
80 | /proc/acpi/ac_adapter/* (sys/class/power_supply/*) | 80 | /proc/acpi/ac_adapter/* (sys/class/power_supply/*) |
81 | This option has no effect on /proc/acpi/ folders | 81 | This option has no effect on /proc/acpi/ directories |
82 | and functions, which do not yet exist in /sys | 82 | and functions, which do not yet exist in /sys |
83 | 83 | ||
84 | Say N to delete power /proc/acpi/ folders that have moved to /sys/ | 84 | Say N to delete power /proc/acpi/ directories that have moved to /sys/ |
85 | |||
85 | config ACPI_SYSFS_POWER | 86 | config ACPI_SYSFS_POWER |
86 | bool "Future power /sys interface" | 87 | bool "Future power /sys interface" |
87 | select POWER_SUPPLY | 88 | select POWER_SUPPLY |
88 | default y | 89 | default y |
89 | ---help--- | 90 | ---help--- |
90 | Say N to disable power /sys interface | 91 | Say N to disable power /sys interface |
92 | |||
91 | config ACPI_PROC_EVENT | 93 | config ACPI_PROC_EVENT |
92 | bool "Deprecated /proc/acpi/event support" | 94 | bool "Deprecated /proc/acpi/event support" |
93 | depends on PROC_FS | 95 | depends on PROC_FS |
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 477711435b24..1fa86811b8ee 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c | |||
@@ -134,7 +134,7 @@ static ssize_t show_present(struct device *dev, | |||
134 | return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay)); | 134 | return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay)); |
135 | 135 | ||
136 | } | 136 | } |
137 | DEVICE_ATTR(present, S_IRUGO, show_present, NULL); | 137 | static DEVICE_ATTR(present, S_IRUGO, show_present, NULL); |
138 | 138 | ||
139 | /* | 139 | /* |
140 | * write_eject - write method for "eject" file in sysfs | 140 | * write_eject - write method for "eject" file in sysfs |
@@ -150,7 +150,7 @@ static ssize_t write_eject(struct device *dev, struct device_attribute *attr, | |||
150 | eject_device(bay->handle); | 150 | eject_device(bay->handle); |
151 | return count; | 151 | return count; |
152 | } | 152 | } |
153 | DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject); | 153 | static DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject); |
154 | 154 | ||
155 | /** | 155 | /** |
156 | * is_ata - see if a device is an ata device | 156 | * is_ata - see if a device is an ata device |
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 8df325dafe0f..8b0d4b7d188a 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -391,7 +391,6 @@ int acpi_bus_receive_event(struct acpi_bus_event *event) | |||
391 | return 0; | 391 | return 0; |
392 | } | 392 | } |
393 | 393 | ||
394 | EXPORT_SYMBOL(acpi_bus_receive_event); | ||
395 | #endif /* CONFIG_ACPI_PROC_EVENT */ | 394 | #endif /* CONFIG_ACPI_PROC_EVENT */ |
396 | 395 | ||
397 | /* -------------------------------------------------------------------------- | 396 | /* -------------------------------------------------------------------------- |
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index b3dec2101e2e..307cef65c247 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -686,7 +686,7 @@ static ssize_t show_docked(struct device *dev, | |||
686 | return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station)); | 686 | return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station)); |
687 | 687 | ||
688 | } | 688 | } |
689 | DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL); | 689 | static DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL); |
690 | 690 | ||
691 | /* | 691 | /* |
692 | * show_flags - read method for flags file in sysfs | 692 | * show_flags - read method for flags file in sysfs |
@@ -697,7 +697,7 @@ static ssize_t show_flags(struct device *dev, | |||
697 | return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); | 697 | return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); |
698 | 698 | ||
699 | } | 699 | } |
700 | DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL); | 700 | static DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL); |
701 | 701 | ||
702 | /* | 702 | /* |
703 | * write_undock - write method for "undock" file in sysfs | 703 | * write_undock - write method for "undock" file in sysfs |
@@ -713,7 +713,7 @@ static ssize_t write_undock(struct device *dev, struct device_attribute *attr, | |||
713 | ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); | 713 | ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); |
714 | return ret ? ret: count; | 714 | return ret ? ret: count; |
715 | } | 715 | } |
716 | DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock); | 716 | static DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock); |
717 | 717 | ||
718 | /* | 718 | /* |
719 | * show_dock_uid - read method for "uid" file in sysfs | 719 | * show_dock_uid - read method for "uid" file in sysfs |
@@ -729,7 +729,7 @@ static ssize_t show_dock_uid(struct device *dev, | |||
729 | 729 | ||
730 | return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf); | 730 | return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf); |
731 | } | 731 | } |
732 | DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL); | 732 | static DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL); |
733 | 733 | ||
734 | /** | 734 | /** |
735 | * dock_add - add a new dock station | 735 | * dock_add - add a new dock station |
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index 4893e256e399..eda0978b57c6 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c | |||
@@ -36,8 +36,6 @@ int register_acpi_bus_type(struct acpi_bus_type *type) | |||
36 | return -ENODEV; | 36 | return -ENODEV; |
37 | } | 37 | } |
38 | 38 | ||
39 | EXPORT_SYMBOL(register_acpi_bus_type); | ||
40 | |||
41 | int unregister_acpi_bus_type(struct acpi_bus_type *type) | 39 | int unregister_acpi_bus_type(struct acpi_bus_type *type) |
42 | { | 40 | { |
43 | if (acpi_disabled) | 41 | if (acpi_disabled) |
@@ -53,8 +51,6 @@ int unregister_acpi_bus_type(struct acpi_bus_type *type) | |||
53 | return -ENODEV; | 51 | return -ENODEV; |
54 | } | 52 | } |
55 | 53 | ||
56 | EXPORT_SYMBOL(unregister_acpi_bus_type); | ||
57 | |||
58 | static struct acpi_bus_type *acpi_get_bus_type(struct bus_type *type) | 54 | static struct acpi_bus_type *acpi_get_bus_type(struct bus_type *type) |
59 | { | 55 | { |
60 | struct acpi_bus_type *tmp, *ret = NULL; | 56 | struct acpi_bus_type *tmp, *ret = NULL; |
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 0822d9fc1cb4..5d59cb33b1a5 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
@@ -78,6 +78,7 @@ int acpi_map_pxm_to_node(int pxm) | |||
78 | return node; | 78 | return node; |
79 | } | 79 | } |
80 | 80 | ||
81 | #if 0 | ||
81 | void __cpuinit acpi_unmap_pxm_to_node(int node) | 82 | void __cpuinit acpi_unmap_pxm_to_node(int node) |
82 | { | 83 | { |
83 | int pxm = node_to_pxm_map[node]; | 84 | int pxm = node_to_pxm_map[node]; |
@@ -85,6 +86,7 @@ void __cpuinit acpi_unmap_pxm_to_node(int node) | |||
85 | node_to_pxm_map[node] = PXM_INVAL; | 86 | node_to_pxm_map[node] = PXM_INVAL; |
86 | node_clear(node, nodes_found_map); | 87 | node_clear(node, nodes_found_map); |
87 | } | 88 | } |
89 | #endif /* 0 */ | ||
88 | 90 | ||
89 | static void __init | 91 | static void __init |
90 | acpi_table_print_srat_entry(struct acpi_subtable_header *header) | 92 | acpi_table_print_srat_entry(struct acpi_subtable_header *header) |
@@ -247,7 +249,6 @@ int acpi_get_pxm(acpi_handle h) | |||
247 | } while (ACPI_SUCCESS(status)); | 249 | } while (ACPI_SUCCESS(status)); |
248 | return -1; | 250 | return -1; |
249 | } | 251 | } |
250 | EXPORT_SYMBOL(acpi_get_pxm); | ||
251 | 252 | ||
252 | int acpi_get_node(acpi_handle *handle) | 253 | int acpi_get_node(acpi_handle *handle) |
253 | { | 254 | { |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 6f49f6437289..c2c585366fa6 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -233,8 +233,6 @@ void acpi_os_printf(const char *fmt, ...) | |||
233 | va_end(args); | 233 | va_end(args); |
234 | } | 234 | } |
235 | 235 | ||
236 | EXPORT_SYMBOL(acpi_os_printf); | ||
237 | |||
238 | void acpi_os_vprintf(const char *fmt, va_list args) | 236 | void acpi_os_vprintf(const char *fmt, va_list args) |
239 | { | 237 | { |
240 | static char buffer[512]; | 238 | static char buffer[512]; |
@@ -413,8 +411,6 @@ void acpi_os_sleep(acpi_integer ms) | |||
413 | schedule_timeout_interruptible(msecs_to_jiffies(ms)); | 411 | schedule_timeout_interruptible(msecs_to_jiffies(ms)); |
414 | } | 412 | } |
415 | 413 | ||
416 | EXPORT_SYMBOL(acpi_os_sleep); | ||
417 | |||
418 | void acpi_os_stall(u32 us) | 414 | void acpi_os_stall(u32 us) |
419 | { | 415 | { |
420 | while (us) { | 416 | while (us) { |
@@ -428,8 +424,6 @@ void acpi_os_stall(u32 us) | |||
428 | } | 424 | } |
429 | } | 425 | } |
430 | 426 | ||
431 | EXPORT_SYMBOL(acpi_os_stall); | ||
432 | |||
433 | /* | 427 | /* |
434 | * Support ACPI 3.0 AML Timer operand | 428 | * Support ACPI 3.0 AML Timer operand |
435 | * Returns 64-bit free-running, monotonically increasing timer | 429 | * Returns 64-bit free-running, monotonically increasing timer |
@@ -579,8 +573,6 @@ acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, | |||
579 | return (result ? AE_ERROR : AE_OK); | 573 | return (result ? AE_ERROR : AE_OK); |
580 | } | 574 | } |
581 | 575 | ||
582 | EXPORT_SYMBOL(acpi_os_read_pci_configuration); | ||
583 | |||
584 | acpi_status | 576 | acpi_status |
585 | acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, | 577 | acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, |
586 | acpi_integer value, u32 width) | 578 | acpi_integer value, u32 width) |
@@ -796,8 +788,6 @@ acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle) | |||
796 | return AE_OK; | 788 | return AE_OK; |
797 | } | 789 | } |
798 | 790 | ||
799 | EXPORT_SYMBOL(acpi_os_create_semaphore); | ||
800 | |||
801 | /* | 791 | /* |
802 | * TODO: A better way to delete semaphores? Linux doesn't have a | 792 | * TODO: A better way to delete semaphores? Linux doesn't have a |
803 | * 'delete_semaphore()' function -- may result in an invalid | 793 | * 'delete_semaphore()' function -- may result in an invalid |
@@ -821,8 +811,6 @@ acpi_status acpi_os_delete_semaphore(acpi_handle handle) | |||
821 | return AE_OK; | 811 | return AE_OK; |
822 | } | 812 | } |
823 | 813 | ||
824 | EXPORT_SYMBOL(acpi_os_delete_semaphore); | ||
825 | |||
826 | /* | 814 | /* |
827 | * TODO: The kernel doesn't have a 'down_timeout' function -- had to | 815 | * TODO: The kernel doesn't have a 'down_timeout' function -- had to |
828 | * improvise. The process is to sleep for one scheduler quantum | 816 | * improvise. The process is to sleep for one scheduler quantum |
@@ -915,8 +903,6 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) | |||
915 | return status; | 903 | return status; |
916 | } | 904 | } |
917 | 905 | ||
918 | EXPORT_SYMBOL(acpi_os_wait_semaphore); | ||
919 | |||
920 | /* | 906 | /* |
921 | * TODO: Support for units > 1? | 907 | * TODO: Support for units > 1? |
922 | */ | 908 | */ |
@@ -939,8 +925,6 @@ acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units) | |||
939 | return AE_OK; | 925 | return AE_OK; |
940 | } | 926 | } |
941 | 927 | ||
942 | EXPORT_SYMBOL(acpi_os_signal_semaphore); | ||
943 | |||
944 | #ifdef ACPI_FUTURE_USAGE | 928 | #ifdef ACPI_FUTURE_USAGE |
945 | u32 acpi_os_get_line(char *buffer) | 929 | u32 acpi_os_get_line(char *buffer) |
946 | { | 930 | { |
@@ -984,8 +968,6 @@ acpi_status acpi_os_signal(u32 function, void *info) | |||
984 | return AE_OK; | 968 | return AE_OK; |
985 | } | 969 | } |
986 | 970 | ||
987 | EXPORT_SYMBOL(acpi_os_signal); | ||
988 | |||
989 | static int __init acpi_os_name_setup(char *str) | 971 | static int __init acpi_os_name_setup(char *str) |
990 | { | 972 | { |
991 | char *p = acpi_os_name; | 973 | char *p = acpi_os_name; |
diff --git a/drivers/acpi/pci_bind.c b/drivers/acpi/pci_bind.c index 388300de005d..4b252ea0e952 100644 --- a/drivers/acpi/pci_bind.c +++ b/drivers/acpi/pci_bind.c | |||
@@ -44,6 +44,8 @@ struct acpi_pci_data { | |||
44 | struct pci_dev *dev; | 44 | struct pci_dev *dev; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | static int acpi_pci_unbind(struct acpi_device *device); | ||
48 | |||
47 | static void acpi_pci_data_handler(acpi_handle handle, u32 function, | 49 | static void acpi_pci_data_handler(acpi_handle handle, u32 function, |
48 | void *context) | 50 | void *context) |
49 | { | 51 | { |
@@ -267,7 +269,7 @@ int acpi_pci_bind(struct acpi_device *device) | |||
267 | return result; | 269 | return result; |
268 | } | 270 | } |
269 | 271 | ||
270 | int acpi_pci_unbind(struct acpi_device *device) | 272 | static int acpi_pci_unbind(struct acpi_device *device) |
271 | { | 273 | { |
272 | int result = 0; | 274 | int result = 0; |
273 | acpi_status status = AE_OK; | 275 | acpi_status status = AE_OK; |
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index 76d9c669d2d8..7f19859580c7 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c | |||
@@ -475,8 +475,6 @@ int acpi_pci_irq_enable(struct pci_dev *dev) | |||
475 | return 0; | 475 | return 0; |
476 | } | 476 | } |
477 | 477 | ||
478 | EXPORT_SYMBOL(acpi_pci_irq_enable); | ||
479 | |||
480 | /* FIXME: implement x86/x86_64 version */ | 478 | /* FIXME: implement x86/x86_64 version */ |
481 | void __attribute__ ((weak)) acpi_unregister_gsi(u32 i) | 479 | void __attribute__ ((weak)) acpi_unregister_gsi(u32 i) |
482 | { | 480 | { |
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 5400ea173f6f..233c40c51684 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -95,7 +95,7 @@ static struct { | |||
95 | int count; | 95 | int count; |
96 | struct list_head entries; | 96 | struct list_head entries; |
97 | } acpi_link; | 97 | } acpi_link; |
98 | DEFINE_MUTEX(acpi_link_lock); | 98 | static DEFINE_MUTEX(acpi_link_lock); |
99 | 99 | ||
100 | /* -------------------------------------------------------------------------- | 100 | /* -------------------------------------------------------------------------- |
101 | PCI Link Device Management | 101 | PCI Link Device Management |
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index f136c7d3b3c2..1194105cc3ca 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c | |||
@@ -888,7 +888,7 @@ static void acpi_charger_remove(struct acpi_sbs *sbs) | |||
888 | #endif | 888 | #endif |
889 | } | 889 | } |
890 | 890 | ||
891 | void acpi_sbs_callback(void *context) | 891 | static void acpi_sbs_callback(void *context) |
892 | { | 892 | { |
893 | int id; | 893 | int id; |
894 | struct acpi_sbs *sbs = context; | 894 | struct acpi_sbs *sbs = context; |
diff --git a/drivers/acpi/sbshc.c b/drivers/acpi/sbshc.c index fd40b6a1d639..ae9a90438e2f 100644 --- a/drivers/acpi/sbshc.c +++ b/drivers/acpi/sbshc.c | |||
@@ -111,8 +111,8 @@ static int wait_transaction_complete(struct acpi_smb_hc *hc, int timeout) | |||
111 | return -ETIME; | 111 | return -ETIME; |
112 | } | 112 | } |
113 | 113 | ||
114 | int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, u8 address, | 114 | static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, |
115 | u8 command, u8 *data, u8 length) | 115 | u8 address, u8 command, u8 *data, u8 length) |
116 | { | 116 | { |
117 | int ret = -EFAULT, i; | 117 | int ret = -EFAULT, i; |
118 | u8 temp, sz = 0; | 118 | u8 temp, sz = 0; |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index c7b0aa52dd23..3fac011f9cf9 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -59,7 +59,7 @@ static int create_modalias(struct acpi_device *acpi_dev, char *modalias, | |||
59 | count = snprintf(&modalias[len], size, "%s:", | 59 | count = snprintf(&modalias[len], size, "%s:", |
60 | cid_list->id[i].value); | 60 | cid_list->id[i].value); |
61 | if (count < 0 || count >= size) { | 61 | if (count < 0 || count >= size) { |
62 | printk(KERN_ERR "acpi: %s cid[%i] exceeds event buffer size", | 62 | printk(KERN_ERR PREFIX "%s cid[%i] exceeds event buffer size", |
63 | acpi_dev->pnp.device_name, i); | 63 | acpi_dev->pnp.device_name, i); |
64 | break; | 64 | break; |
65 | } | 65 | } |
@@ -453,7 +453,7 @@ static int acpi_device_register(struct acpi_device *device, | |||
453 | device->dev.release = &acpi_device_release; | 453 | device->dev.release = &acpi_device_release; |
454 | result = device_add(&device->dev); | 454 | result = device_add(&device->dev); |
455 | if(result) { | 455 | if(result) { |
456 | printk("Error adding device %s", device->dev.bus_id); | 456 | printk(KERN_ERR PREFIX "Error adding device %s", device->dev.bus_id); |
457 | goto end; | 457 | goto end; |
458 | } | 458 | } |
459 | 459 | ||
@@ -966,7 +966,7 @@ static void acpi_device_set_id(struct acpi_device *device, | |||
966 | case ACPI_BUS_TYPE_DEVICE: | 966 | case ACPI_BUS_TYPE_DEVICE: |
967 | status = acpi_get_object_info(handle, &buffer); | 967 | status = acpi_get_object_info(handle, &buffer); |
968 | if (ACPI_FAILURE(status)) { | 968 | if (ACPI_FAILURE(status)) { |
969 | printk("%s: Error reading device info\n", __FUNCTION__); | 969 | printk(KERN_ERR PREFIX "%s: Error reading device info\n", __FUNCTION__); |
970 | return; | 970 | return; |
971 | } | 971 | } |
972 | 972 | ||
@@ -1072,7 +1072,7 @@ static void acpi_device_set_id(struct acpi_device *device, | |||
1072 | list->count = count; | 1072 | list->count = count; |
1073 | device->pnp.cid_list = list; | 1073 | device->pnp.cid_list = list; |
1074 | } else | 1074 | } else |
1075 | printk(KERN_ERR "Memory allocation error\n"); | 1075 | printk(KERN_ERR PREFIX "Memory allocation error\n"); |
1076 | } | 1076 | } |
1077 | 1077 | ||
1078 | kfree(buffer.pointer); | 1078 | kfree(buffer.pointer); |
@@ -1096,7 +1096,7 @@ static int acpi_device_set_context(struct acpi_device *device, int type) | |||
1096 | acpi_bus_data_handler, device); | 1096 | acpi_bus_data_handler, device); |
1097 | 1097 | ||
1098 | if (ACPI_FAILURE(status)) { | 1098 | if (ACPI_FAILURE(status)) { |
1099 | printk("Error attaching device data\n"); | 1099 | printk(KERN_ERR PREFIX "Error attaching device data\n"); |
1100 | result = -ENODEV; | 1100 | result = -ENODEV; |
1101 | } | 1101 | } |
1102 | } | 1102 | } |
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h index 45662f6dbdb6..99d171c87c84 100644 --- a/include/acpi/acmacros.h +++ b/include/acpi/acmacros.h | |||
@@ -486,7 +486,7 @@ | |||
486 | #define ACPI_FUNCTION_NAME(name) | 486 | #define ACPI_FUNCTION_NAME(name) |
487 | #endif | 487 | #endif |
488 | 488 | ||
489 | #ifdef DEBUG_FUNC_TRACE | 489 | #ifdef CONFIG_ACPI_DEBUG_FUNC_TRACE |
490 | 490 | ||
491 | #define ACPI_FUNCTION_TRACE(a) ACPI_FUNCTION_NAME(a) \ | 491 | #define ACPI_FUNCTION_TRACE(a) ACPI_FUNCTION_NAME(a) \ |
492 | acpi_ut_trace(ACPI_DEBUG_PARAMETERS) | 492 | acpi_ut_trace(ACPI_DEBUG_PARAMETERS) |
@@ -565,7 +565,7 @@ | |||
565 | 565 | ||
566 | #endif /* ACPI_SIMPLE_RETURN_MACROS */ | 566 | #endif /* ACPI_SIMPLE_RETURN_MACROS */ |
567 | 567 | ||
568 | #else /* !DEBUG_FUNC_TRACE */ | 568 | #else /* !CONFIG_ACPI_DEBUG_FUNC_TRACE */ |
569 | 569 | ||
570 | #define ACPI_FUNCTION_TRACE(a) | 570 | #define ACPI_FUNCTION_TRACE(a) |
571 | #define ACPI_FUNCTION_TRACE_PTR(a,b) | 571 | #define ACPI_FUNCTION_TRACE_PTR(a,b) |
@@ -584,7 +584,7 @@ | |||
584 | #define return_UINT32(s) return(s) | 584 | #define return_UINT32(s) return(s) |
585 | #define return_PTR(s) return(s) | 585 | #define return_PTR(s) return(s) |
586 | 586 | ||
587 | #endif /* DEBUG_FUNC_TRACE */ | 587 | #endif /* CONFIG_ACPI_DEBUG_FUNC_TRACE */ |
588 | 588 | ||
589 | /* Conditional execution */ | 589 | /* Conditional execution */ |
590 | 590 | ||
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 581daa451ffc..9757a040a505 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -74,7 +74,6 @@ struct pci_bus; | |||
74 | 74 | ||
75 | acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id); | 75 | acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id); |
76 | int acpi_pci_bind(struct acpi_device *device); | 76 | int acpi_pci_bind(struct acpi_device *device); |
77 | int acpi_pci_unbind(struct acpi_device *device); | ||
78 | int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id, | 77 | int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id, |
79 | struct pci_bus *bus); | 78 | struct pci_bus *bus); |
80 | 79 | ||
diff --git a/include/acpi/acpi_numa.h b/include/acpi/acpi_numa.h index 62c5ee4311da..173972672175 100644 --- a/include/acpi/acpi_numa.h +++ b/include/acpi/acpi_numa.h | |||
@@ -15,7 +15,6 @@ extern int pxm_to_node(int); | |||
15 | extern int node_to_pxm(int); | 15 | extern int node_to_pxm(int); |
16 | extern void __acpi_map_pxm_to_node(int, int); | 16 | extern void __acpi_map_pxm_to_node(int, int); |
17 | extern int acpi_map_pxm_to_node(int); | 17 | extern int acpi_map_pxm_to_node(int); |
18 | extern void __cpuinit acpi_unmap_pxm_to_node(int); | ||
19 | 18 | ||
20 | #endif /* CONFIG_ACPI_NUMA */ | 19 | #endif /* CONFIG_ACPI_NUMA */ |
21 | #endif /* __ACP_NUMA_H */ | 20 | #endif /* __ACP_NUMA_H */ |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 25fb4dcc0e6b..ddbe7efe590e 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -44,8 +44,6 @@ | |||
44 | #include <linux/dmi.h> | 44 | #include <linux/dmi.h> |
45 | 45 | ||
46 | 46 | ||
47 | #ifdef CONFIG_ACPI | ||
48 | |||
49 | enum acpi_irq_model_id { | 47 | enum acpi_irq_model_id { |
50 | ACPI_IRQ_MODEL_PIC = 0, | 48 | ACPI_IRQ_MODEL_PIC = 0, |
51 | ACPI_IRQ_MODEL_IOAPIC, | 49 | ACPI_IRQ_MODEL_IOAPIC, |
@@ -116,9 +114,7 @@ int acpi_unmap_lsapic(int cpu); | |||
116 | int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base); | 114 | int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base); |
117 | int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base); | 115 | int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base); |
118 | void acpi_irq_stats_init(void); | 116 | void acpi_irq_stats_init(void); |
119 | |||
120 | extern u32 acpi_irq_handled; | 117 | extern u32 acpi_irq_handled; |
121 | extern int acpi_mp_config; | ||
122 | 118 | ||
123 | extern struct acpi_mcfg_allocation *pci_mmcfg_config; | 119 | extern struct acpi_mcfg_allocation *pci_mmcfg_config; |
124 | extern int pci_mmcfg_config_num; | 120 | extern int pci_mmcfg_config_num; |
@@ -126,12 +122,6 @@ extern int pci_mmcfg_config_num; | |||
126 | extern int sbf_port; | 122 | extern int sbf_port; |
127 | extern unsigned long acpi_realmode_flags; | 123 | extern unsigned long acpi_realmode_flags; |
128 | 124 | ||
129 | #else /* !CONFIG_ACPI */ | ||
130 | |||
131 | #define acpi_mp_config 0 | ||
132 | |||
133 | #endif /* !CONFIG_ACPI */ | ||
134 | |||
135 | int acpi_register_gsi (u32 gsi, int triggering, int polarity); | 125 | int acpi_register_gsi (u32 gsi, int triggering, int polarity); |
136 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); | 126 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); |
137 | 127 | ||
@@ -147,8 +137,6 @@ extern int acpi_get_override_irq(int bus_irq, int *trigger, int *polarity); | |||
147 | */ | 137 | */ |
148 | void acpi_unregister_gsi (u32 gsi); | 138 | void acpi_unregister_gsi (u32 gsi); |
149 | 139 | ||
150 | #ifdef CONFIG_ACPI | ||
151 | |||
152 | struct acpi_prt_entry { | 140 | struct acpi_prt_entry { |
153 | struct list_head node; | 141 | struct list_head node; |
154 | struct acpi_pci_id id; | 142 | struct acpi_pci_id id; |
@@ -181,8 +169,6 @@ struct acpi_pci_driver { | |||
181 | int acpi_pci_register_driver(struct acpi_pci_driver *driver); | 169 | int acpi_pci_register_driver(struct acpi_pci_driver *driver); |
182 | void acpi_pci_unregister_driver(struct acpi_pci_driver *driver); | 170 | void acpi_pci_unregister_driver(struct acpi_pci_driver *driver); |
183 | 171 | ||
184 | #endif /* CONFIG_ACPI */ | ||
185 | |||
186 | #ifdef CONFIG_ACPI_EC | 172 | #ifdef CONFIG_ACPI_EC |
187 | 173 | ||
188 | extern int ec_read(u8 addr, u8 *val); | 174 | extern int ec_read(u8 addr, u8 *val); |