diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2020-05-08 12:05:52 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-05-18 18:08:04 +0100 |
commit | 5ec605108ff4901aedd62ee1bdd4250f2f7cf978 (patch) | |
tree | cd73bd8a619b0f03a202ecd9a90a333a466ba15c /drivers/acpi/arm64/gtdt.c | |
parent | 44cdc7b16e0a6a69a170cf98006aba1c1359ee3b (diff) |
ACPI: GTDT: Put GTDT table after parsing
The mapped GTDT table needs to be released after
the driver init.
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1588910753-18543-1-git-send-email-guohanjun@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/acpi/arm64/gtdt.c')
-rw-r--r-- | drivers/acpi/arm64/gtdt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/arm64/gtdt.c b/drivers/acpi/arm64/gtdt.c index 01962c63a711..f2d0e5915dab 100644 --- a/drivers/acpi/arm64/gtdt.c +++ b/drivers/acpi/arm64/gtdt.c @@ -394,7 +394,7 @@ static int __init gtdt_sbsa_gwdt_init(void) */ ret = acpi_gtdt_init(table, &timer_count); if (ret || !timer_count) - return ret; + goto out_put_gtdt; for_each_platform_timer(platform_timer) { if (is_non_secure_watchdog(platform_timer)) { @@ -408,6 +408,8 @@ static int __init gtdt_sbsa_gwdt_init(void) if (gwdt_count) pr_info("found %d SBSA generic Watchdog(s).\n", gwdt_count); +out_put_gtdt: + acpi_put_table(table); return ret; } |