diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 851ac492dbbc..ee0b9f761f76 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -205,7 +205,7 @@ void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size) | |||
205 | { | 205 | { |
206 | if (phys > ULONG_MAX) { | 206 | if (phys > ULONG_MAX) { |
207 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); | 207 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); |
208 | return 0; | 208 | return NULL; |
209 | } | 209 | } |
210 | if (acpi_gbl_permanent_mmap) | 210 | if (acpi_gbl_permanent_mmap) |
211 | /* | 211 | /* |
@@ -890,26 +890,6 @@ u32 acpi_os_get_line(char *buffer) | |||
890 | } | 890 | } |
891 | #endif /* ACPI_FUTURE_USAGE */ | 891 | #endif /* ACPI_FUTURE_USAGE */ |
892 | 892 | ||
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) | 893 | acpi_status acpi_os_signal(u32 function, void *info) |
914 | { | 894 | { |
915 | switch (function) { | 895 | switch (function) { |