diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 0f6f3bcbc8eb..971eca4864fa 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #include <linux/efi.h> | 46 | #include <linux/efi.h> |
47 | 47 | ||
48 | #define _COMPONENT ACPI_OS_SERVICES | 48 | #define _COMPONENT ACPI_OS_SERVICES |
49 | ACPI_MODULE_NAME("osl") | 49 | ACPI_MODULE_NAME("osl"); |
50 | #define PREFIX "ACPI: " | 50 | #define PREFIX "ACPI: " |
51 | struct acpi_os_dpc { | 51 | struct acpi_os_dpc { |
52 | acpi_osd_exec_callback function; | 52 | acpi_osd_exec_callback function; |
@@ -68,9 +68,6 @@ EXPORT_SYMBOL(acpi_in_debugger); | |||
68 | extern char line_buf[80]; | 68 | extern char line_buf[80]; |
69 | #endif /*ENABLE_DEBUGGER */ | 69 | #endif /*ENABLE_DEBUGGER */ |
70 | 70 | ||
71 | int acpi_specific_hotkey_enabled = TRUE; | ||
72 | EXPORT_SYMBOL(acpi_specific_hotkey_enabled); | ||
73 | |||
74 | static unsigned int acpi_irq_irq; | 71 | static unsigned int acpi_irq_irq; |
75 | static acpi_osd_handler acpi_irq_handler; | 72 | static acpi_osd_handler acpi_irq_handler; |
76 | static void *acpi_irq_context; | 73 | static void *acpi_irq_context; |
@@ -205,7 +202,7 @@ void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size) | |||
205 | { | 202 | { |
206 | if (phys > ULONG_MAX) { | 203 | if (phys > ULONG_MAX) { |
207 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); | 204 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); |
208 | return 0; | 205 | return NULL; |
209 | } | 206 | } |
210 | if (acpi_gbl_permanent_mmap) | 207 | if (acpi_gbl_permanent_mmap) |
211 | /* | 208 | /* |
@@ -890,26 +887,6 @@ u32 acpi_os_get_line(char *buffer) | |||
890 | } | 887 | } |
891 | #endif /* ACPI_FUTURE_USAGE */ | 888 | #endif /* ACPI_FUTURE_USAGE */ |
892 | 889 | ||
893 | /* Assumes no unreadable holes inbetween */ | ||
894 | u8 acpi_os_readable(void *ptr, acpi_size len) | ||
895 | { | ||
896 | #if defined(__i386__) || defined(__x86_64__) | ||
897 | char tmp; | ||
898 | return !__get_user(tmp, (char __user *)ptr) | ||
899 | && !__get_user(tmp, (char __user *)ptr + len - 1); | ||
900 | #endif | ||
901 | return 1; | ||
902 | } | ||
903 | |||
904 | #ifdef ACPI_FUTURE_USAGE | ||
905 | u8 acpi_os_writable(void *ptr, acpi_size len) | ||
906 | { | ||
907 | /* could do dummy write (racy) or a kernel page table lookup. | ||
908 | The later may be difficult at early boot when kmap doesn't work yet. */ | ||
909 | return 1; | ||
910 | } | ||
911 | #endif | ||
912 | |||
913 | acpi_status acpi_os_signal(u32 function, void *info) | 890 | acpi_status acpi_os_signal(u32 function, void *info) |
914 | { | 891 | { |
915 | switch (function) { | 892 | switch (function) { |
@@ -1012,14 +989,6 @@ static int __init acpi_wake_gpes_always_on_setup(char *str) | |||
1012 | 989 | ||
1013 | __setup("acpi_wake_gpes_always_on", acpi_wake_gpes_always_on_setup); | 990 | __setup("acpi_wake_gpes_always_on", acpi_wake_gpes_always_on_setup); |
1014 | 991 | ||
1015 | static int __init acpi_hotkey_setup(char *str) | ||
1016 | { | ||
1017 | acpi_specific_hotkey_enabled = FALSE; | ||
1018 | return 1; | ||
1019 | } | ||
1020 | |||
1021 | __setup("acpi_generic_hotkey", acpi_hotkey_setup); | ||
1022 | |||
1023 | /* | 992 | /* |
1024 | * max_cstate is defined in the base kernel so modules can | 993 | * max_cstate is defined in the base kernel so modules can |
1025 | * change it w/o depending on the state of the processor module. | 994 | * change it w/o depending on the state of the processor module. |