aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-24 12:24:42 -0400
committerLen Brown <len.brown@intel.com>2008-02-07 03:33:23 -0500
commite5685b9d35c2cc0a98425b05df30cb837dd1e632 (patch)
tree7f10940d8bdaa18cd806d42a3fdb63cfefc47f37 /drivers/acpi/osl.c
parent87ecd5cddaa37f057d8d8c2813e1b748b1804423 (diff)
ACPI: misc cleanups
This patch contains the following possible cleanups: - make the following needlessly global code static: - drivers/acpi/bay.c:dev_attr_eject - drivers/acpi/bay.c:dev_attr_present - drivers/acpi/dock.c:dev_attr_docked - drivers/acpi/dock.c:dev_attr_flags - drivers/acpi/dock.c:dev_attr_uid - drivers/acpi/dock.c:dev_attr_undock - drivers/acpi/pci_bind.c:acpi_pci_unbind() - drivers/acpi/pci_link.c:acpi_link_lock - drivers/acpi/sbs.c:acpi_sbs_callback() - drivers/acpi/sbshc.c:acpi_smbus_transaction() - drivers/acpi/sleep/main.c:acpi_sleep_prepare() - #if 0 the following unused global functions: - drivers/acpi/numa.c:acpi_unmap_pxm_to_node() - remove the following unused EXPORT_SYMBOL's: - acpi_register_gsi - acpi_unregister_gsi - acpi_strict - acpi_bus_receive_event - register_acpi_bus_type - unregister_acpi_bus_type - acpi_os_printf - acpi_os_sleep - acpi_os_stall - acpi_os_read_pci_configuration - acpi_os_create_semaphore - acpi_os_delete_semaphore - acpi_os_wait_semaphore - acpi_os_signal_semaphore - acpi_os_signal - acpi_pci_irq_enable - acpi_get_pxm Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index e53fb516f9d4..7fcacc5ed821 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -219,8 +219,6 @@ void acpi_os_printf(const char *fmt, ...)
219 va_end(args); 219 va_end(args);
220} 220}
221 221
222EXPORT_SYMBOL(acpi_os_printf);
223
224void acpi_os_vprintf(const char *fmt, va_list args) 222void acpi_os_vprintf(const char *fmt, va_list args)
225{ 223{
226 static char buffer[512]; 224 static char buffer[512];
@@ -384,8 +382,6 @@ void acpi_os_sleep(acpi_integer ms)
384 schedule_timeout_interruptible(msecs_to_jiffies(ms)); 382 schedule_timeout_interruptible(msecs_to_jiffies(ms));
385} 383}
386 384
387EXPORT_SYMBOL(acpi_os_sleep);
388
389void acpi_os_stall(u32 us) 385void acpi_os_stall(u32 us)
390{ 386{
391 while (us) { 387 while (us) {
@@ -399,8 +395,6 @@ void acpi_os_stall(u32 us)
399 } 395 }
400} 396}
401 397
402EXPORT_SYMBOL(acpi_os_stall);
403
404/* 398/*
405 * Support ACPI 3.0 AML Timer operand 399 * Support ACPI 3.0 AML Timer operand
406 * Returns 64-bit free-running, monotonically increasing timer 400 * Returns 64-bit free-running, monotonically increasing timer
@@ -550,8 +544,6 @@ acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
550 return (result ? AE_ERROR : AE_OK); 544 return (result ? AE_ERROR : AE_OK);
551} 545}
552 546
553EXPORT_SYMBOL(acpi_os_read_pci_configuration);
554
555acpi_status 547acpi_status
556acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, 548acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
557 acpi_integer value, u32 width) 549 acpi_integer value, u32 width)
@@ -793,8 +785,6 @@ acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle)
793 return AE_OK; 785 return AE_OK;
794} 786}
795 787
796EXPORT_SYMBOL(acpi_os_create_semaphore);
797
798/* 788/*
799 * TODO: A better way to delete semaphores? Linux doesn't have a 789 * TODO: A better way to delete semaphores? Linux doesn't have a
800 * 'delete_semaphore()' function -- may result in an invalid 790 * 'delete_semaphore()' function -- may result in an invalid
@@ -818,8 +808,6 @@ acpi_status acpi_os_delete_semaphore(acpi_handle handle)
818 return AE_OK; 808 return AE_OK;
819} 809}
820 810
821EXPORT_SYMBOL(acpi_os_delete_semaphore);
822
823/* 811/*
824 * TODO: The kernel doesn't have a 'down_timeout' function -- had to 812 * TODO: The kernel doesn't have a 'down_timeout' function -- had to
825 * improvise. The process is to sleep for one scheduler quantum 813 * improvise. The process is to sleep for one scheduler quantum
@@ -912,8 +900,6 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
912 return status; 900 return status;
913} 901}
914 902
915EXPORT_SYMBOL(acpi_os_wait_semaphore);
916
917/* 903/*
918 * TODO: Support for units > 1? 904 * TODO: Support for units > 1?
919 */ 905 */
@@ -936,8 +922,6 @@ acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units)
936 return AE_OK; 922 return AE_OK;
937} 923}
938 924
939EXPORT_SYMBOL(acpi_os_signal_semaphore);
940
941#ifdef ACPI_FUTURE_USAGE 925#ifdef ACPI_FUTURE_USAGE
942u32 acpi_os_get_line(char *buffer) 926u32 acpi_os_get_line(char *buffer)
943{ 927{
@@ -981,8 +965,6 @@ acpi_status acpi_os_signal(u32 function, void *info)
981 return AE_OK; 965 return AE_OK;
982} 966}
983 967
984EXPORT_SYMBOL(acpi_os_signal);
985
986static int __init acpi_os_name_setup(char *str) 968static int __init acpi_os_name_setup(char *str)
987{ 969{
988 char *p = acpi_os_name; 970 char *p = acpi_os_name;