aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorGravatar Hanjun Guo <guohanjun@huawei.com> 2020-05-08 12:05:53 +0800
committerGravatar Will Deacon <will@kernel.org> 2020-05-18 18:08:04 +0100
commit701dafe0670c736c0131328c0fd64c1190f0bb0c (patch)
treee551312da9adf1cc644b6e72f9586994a7a4da50 /drivers/acpi
parentACPI: GTDT: Put GTDT table after parsing (diff)
downloadlinux-701dafe0670c736c0131328c0fd64c1190f0bb0c.tar.gz
linux-701dafe0670c736c0131328c0fd64c1190f0bb0c.tar.bz2
linux-701dafe0670c736c0131328c0fd64c1190f0bb0c.zip
ACPI: IORT: Add comments for not calling acpi_put_table()
The iort_table will be used at runtime after acpi_iort_init(), so add some comments to clarify this to make it less confusing. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/1588910753-18543-2-git-send-email-guohanjun@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/arm64/iort.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 6e445bc55537..619a3e503346 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -1667,6 +1667,10 @@ void __init acpi_iort_init(void)
{
acpi_status status;
+ /* iort_table will be used at runtime after the iort init,
+ * so we don't need to call acpi_put_table() to release
+ * the IORT table mapping.
+ */
status = acpi_get_table(ACPI_SIG_IORT, 0, &iort_table);
if (ACPI_FAILURE(status)) {
if (status != AE_NOT_FOUND) {