diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 58e7c47354ee..cc4a4903842a 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -204,11 +204,13 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size, | |||
204 | 204 | ||
205 | return AE_OK; | 205 | return AE_OK; |
206 | } | 206 | } |
207 | EXPORT_SYMBOL_GPL(acpi_os_map_memory); | ||
207 | 208 | ||
208 | void acpi_os_unmap_memory(void __iomem * virt, acpi_size size) | 209 | void acpi_os_unmap_memory(void __iomem * virt, acpi_size size) |
209 | { | 210 | { |
210 | iounmap(virt); | 211 | iounmap(virt); |
211 | } | 212 | } |
213 | EXPORT_SYMBOL_GPL(acpi_os_unmap_memory); | ||
212 | 214 | ||
213 | #ifdef ACPI_FUTURE_USAGE | 215 | #ifdef ACPI_FUTURE_USAGE |
214 | acpi_status | 216 | acpi_status |
@@ -836,7 +838,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout) | |||
836 | static const int quantum_ms = 1000 / HZ; | 838 | static const int quantum_ms = 1000 / HZ; |
837 | 839 | ||
838 | ret = down_trylock(sem); | 840 | ret = down_trylock(sem); |
839 | for (i = timeout; (i > 0 && ret < 0); i -= quantum_ms) { | 841 | for (i = timeout; (i > 0 && ret != 0); i -= quantum_ms) { |
840 | schedule_timeout_interruptible(1); | 842 | schedule_timeout_interruptible(1); |
841 | ret = down_trylock(sem); | 843 | ret = down_trylock(sem); |
842 | } | 844 | } |