diff options
Diffstat (limited to 'drivers/acpi/acpica/utcache.c')
-rw-r--r-- | drivers/acpi/acpica/utcache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/acpica/utcache.c b/drivers/acpi/acpica/utcache.c index 366bfec4b770..cacd2fd9e665 100644 --- a/drivers/acpi/acpica/utcache.c +++ b/drivers/acpi/acpica/utcache.c | |||
@@ -248,12 +248,12 @@ void *acpi_os_acquire_object(struct acpi_memory_list *cache) | |||
248 | ACPI_FUNCTION_NAME(os_acquire_object); | 248 | ACPI_FUNCTION_NAME(os_acquire_object); |
249 | 249 | ||
250 | if (!cache) { | 250 | if (!cache) { |
251 | return (NULL); | 251 | return_PTR(NULL); |
252 | } | 252 | } |
253 | 253 | ||
254 | status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES); | 254 | status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES); |
255 | if (ACPI_FAILURE(status)) { | 255 | if (ACPI_FAILURE(status)) { |
256 | return (NULL); | 256 | return_PTR(NULL); |
257 | } | 257 | } |
258 | 258 | ||
259 | ACPI_MEM_TRACKING(cache->requests++); | 259 | ACPI_MEM_TRACKING(cache->requests++); |
@@ -276,7 +276,7 @@ void *acpi_os_acquire_object(struct acpi_memory_list *cache) | |||
276 | 276 | ||
277 | status = acpi_ut_release_mutex(ACPI_MTX_CACHES); | 277 | status = acpi_ut_release_mutex(ACPI_MTX_CACHES); |
278 | if (ACPI_FAILURE(status)) { | 278 | if (ACPI_FAILURE(status)) { |
279 | return (NULL); | 279 | return_PTR(NULL); |
280 | } | 280 | } |
281 | 281 | ||
282 | /* Clear (zero) the previously used Object */ | 282 | /* Clear (zero) the previously used Object */ |
@@ -299,15 +299,15 @@ void *acpi_os_acquire_object(struct acpi_memory_list *cache) | |||
299 | 299 | ||
300 | status = acpi_ut_release_mutex(ACPI_MTX_CACHES); | 300 | status = acpi_ut_release_mutex(ACPI_MTX_CACHES); |
301 | if (ACPI_FAILURE(status)) { | 301 | if (ACPI_FAILURE(status)) { |
302 | return (NULL); | 302 | return_PTR(NULL); |
303 | } | 303 | } |
304 | 304 | ||
305 | object = ACPI_ALLOCATE_ZEROED(cache->object_size); | 305 | object = ACPI_ALLOCATE_ZEROED(cache->object_size); |
306 | if (!object) { | 306 | if (!object) { |
307 | return (NULL); | 307 | return_PTR(NULL); |
308 | } | 308 | } |
309 | } | 309 | } |
310 | 310 | ||
311 | return (object); | 311 | return_PTR(object); |
312 | } | 312 | } |
313 | #endif /* ACPI_USE_LOCAL_CACHE */ | 313 | #endif /* ACPI_USE_LOCAL_CACHE */ |