| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ARM Specific GTDT table Support |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Author: Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|
| 6 | 7 | * Fu Wei <fu.wei@linaro.org> |
|---|
| 7 | 8 | * Hanjun Guo <hanjun.guo@linaro.org> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 11 | | - * published by the Free Software Foundation. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #include <linux/acpi.h> |
|---|
| .. | .. |
|---|
| 399 | 396 | */ |
|---|
| 400 | 397 | ret = acpi_gtdt_init(table, &timer_count); |
|---|
| 401 | 398 | if (ret || !timer_count) |
|---|
| 402 | | - return ret; |
|---|
| 399 | + goto out_put_gtdt; |
|---|
| 403 | 400 | |
|---|
| 404 | 401 | for_each_platform_timer(platform_timer) { |
|---|
| 405 | 402 | if (is_non_secure_watchdog(platform_timer)) { |
|---|
| .. | .. |
|---|
| 413 | 410 | if (gwdt_count) |
|---|
| 414 | 411 | pr_info("found %d SBSA generic Watchdog(s).\n", gwdt_count); |
|---|
| 415 | 412 | |
|---|
| 413 | +out_put_gtdt: |
|---|
| 414 | + acpi_put_table(table); |
|---|
| 416 | 415 | return ret; |
|---|
| 417 | 416 | } |
|---|
| 418 | 417 | |
|---|