diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 368e111100bd..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; |
@@ -202,7 +202,7 @@ void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size) | |||
202 | { | 202 | { |
203 | if (phys > ULONG_MAX) { | 203 | if (phys > ULONG_MAX) { |
204 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); | 204 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); |
205 | return 0; | 205 | return NULL; |
206 | } | 206 | } |
207 | if (acpi_gbl_permanent_mmap) | 207 | if (acpi_gbl_permanent_mmap) |
208 | /* | 208 | /* |
@@ -887,26 +887,6 @@ u32 acpi_os_get_line(char *buffer) | |||
887 | } | 887 | } |
888 | #endif /* ACPI_FUTURE_USAGE */ | 888 | #endif /* ACPI_FUTURE_USAGE */ |
889 | 889 | ||
890 | /* Assumes no unreadable holes inbetween */ | ||
891 | u8 acpi_os_readable(void *ptr, acpi_size len) | ||
892 | { | ||
893 | #if defined(__i386__) || defined(__x86_64__) | ||
894 | char tmp; | ||
895 | return !__get_user(tmp, (char __user *)ptr) | ||
896 | && !__get_user(tmp, (char __user *)ptr + len - 1); | ||
897 | #endif | ||
898 | return 1; | ||
899 | } | ||
900 | |||
901 | #ifdef ACPI_FUTURE_USAGE | ||
902 | u8 acpi_os_writable(void *ptr, acpi_size len) | ||
903 | { | ||
904 | /* could do dummy write (racy) or a kernel page table lookup. | ||
905 | The later may be difficult at early boot when kmap doesn't work yet. */ | ||
906 | return 1; | ||
907 | } | ||
908 | #endif | ||
909 | |||
910 | acpi_status acpi_os_signal(u32 function, void *info) | 890 | acpi_status acpi_os_signal(u32 function, void *info) |
911 | { | 891 | { |
912 | switch (function) { | 892 | switch (function) { |