projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec6051
)
ACPI: IORT: Add comments for not calling acpi_put_table()
author
Hanjun Guo
<guohanjun@huawei.com>
Fri, 8 May 2020 04:05:53 +0000
(12:05 +0800)
committer
Will Deacon
<will@kernel.org>
Mon, 18 May 2020 17:08:04 +0000
(18:08 +0100)
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>
drivers/acpi/arm64/iort.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/arm64/iort.c
b/drivers/acpi/arm64/iort.c
index 6e445bc555372cbc24da45560b286c4fd78eb4de..619a3e503346dcc3d2fb3ecf4b08da9f0263f403 100644
(file)
--- 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) {