]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: remove acpi_os_readable(), acpi_os_writable()
authorLen Brown <len.brown@intel.com>
Fri, 16 Feb 2007 03:11:48 +0000 (22:11 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 16 Feb 2007 03:19:17 +0000 (22:19 -0500)
...which are now unused

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c
include/acpi/acpiosxf.h

index 63060a17f7ed60fae9e9bf6f0c3422e4eb393697..99d6c512828094f06237bab76f475b8048c86e51 100644 (file)
@@ -890,26 +890,6 @@ u32 acpi_os_get_line(char *buffer)
 }
 #endif                         /*  ACPI_FUTURE_USAGE  */
 
-/* Assumes no unreadable holes inbetween */
-u8 acpi_os_readable(void *ptr, acpi_size len)
-{
-#if defined(__i386__) || defined(__x86_64__)
-       char tmp;
-       return !__get_user(tmp, (char __user *)ptr)
-           && !__get_user(tmp, (char __user *)ptr + len - 1);
-#endif
-       return 1;
-}
-
-#ifdef ACPI_FUTURE_USAGE
-u8 acpi_os_writable(void *ptr, acpi_size len)
-{
-       /* could do dummy write (racy) or a kernel page table lookup.
-          The later may be difficult at early boot when kmap doesn't work yet. */
-       return 1;
-}
-#endif
-
 acpi_status acpi_os_signal(u32 function, void *info)
 {
        switch (function) {
index 781394b9efe0b630621e246450f4bc575f754b94..2785058c82ab0621991b54a243473e49ff3bc2a8 100644 (file)
@@ -240,12 +240,6 @@ acpi_status
 acpi_os_validate_address(u8 space_id,
                         acpi_physical_address address, acpi_size length);
 
-u8 acpi_os_readable(void *pointer, acpi_size length);
-
-#ifdef ACPI_FUTURE_USAGE
-u8 acpi_os_writable(void *pointer, acpi_size length);
-#endif
-
 u64 acpi_os_get_timer(void);
 
 acpi_status acpi_os_signal(u32 function, void *info);