diff options
Diffstat (limited to 'drivers/acpi/tables/tbxface.c')
-rw-r--r-- | drivers/acpi/tables/tbxface.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/acpi/tables/tbxface.c b/drivers/acpi/tables/tbxface.c index 807978d5381a..417ef5fa7666 100644 --- a/drivers/acpi/tables/tbxface.c +++ b/drivers/acpi/tables/tbxface.c | |||
@@ -338,9 +338,9 @@ acpi_status acpi_unload_table_id(acpi_owner_id id) | |||
338 | int i; | 338 | int i; |
339 | acpi_status status = AE_NOT_EXIST; | 339 | acpi_status status = AE_NOT_EXIST; |
340 | 340 | ||
341 | ACPI_FUNCTION_TRACE(acpi_unload_table); | 341 | ACPI_FUNCTION_TRACE(acpi_unload_table_id); |
342 | 342 | ||
343 | /* Find table from the requested type list */ | 343 | /* Find table in the global table list */ |
344 | for (i = 0; i < acpi_gbl_root_table_list.count; ++i) { | 344 | for (i = 0; i < acpi_gbl_root_table_list.count; ++i) { |
345 | if (id != acpi_gbl_root_table_list.tables[i].owner_id) { | 345 | if (id != acpi_gbl_root_table_list.tables[i].owner_id) { |
346 | continue; | 346 | continue; |
@@ -352,8 +352,9 @@ acpi_status acpi_unload_table_id(acpi_owner_id id) | |||
352 | * simply a position within the hierarchy | 352 | * simply a position within the hierarchy |
353 | */ | 353 | */ |
354 | acpi_tb_delete_namespace_by_owner(i); | 354 | acpi_tb_delete_namespace_by_owner(i); |
355 | acpi_tb_release_owner_id(i); | 355 | status = acpi_tb_release_owner_id(i); |
356 | acpi_tb_set_table_loaded_flag(i, FALSE); | 356 | acpi_tb_set_table_loaded_flag(i, FALSE); |
357 | break; | ||
357 | } | 358 | } |
358 | return_ACPI_STATUS(status); | 359 | return_ACPI_STATUS(status); |
359 | } | 360 | } |
@@ -408,7 +409,7 @@ acpi_get_table(char *signature, | |||
408 | } | 409 | } |
409 | 410 | ||
410 | if (!acpi_gbl_permanent_mmap) { | 411 | if (!acpi_gbl_permanent_mmap) { |
411 | acpi_gbl_root_table_list.tables[i].pointer = 0; | 412 | acpi_gbl_root_table_list.tables[i].pointer = NULL; |
412 | } | 413 | } |
413 | 414 | ||
414 | return (status); | 415 | return (status); |