提交 5ec60510 编写于 作者: H Hanjun Guo 提交者: Will Deacon

ACPI: GTDT: Put GTDT table after parsing

The mapped GTDT table needs to be released after
the driver init.
Signed-off-by: NHanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1588910753-18543-1-git-send-email-guohanjun@huawei.comSigned-off-by: NWill Deacon <will@kernel.org>
上级 44cdc7b1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册