Skip to content

Commit 926de8c

Browse files
committed
Merge tag 'acpi-5.15-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more ACPI updates from Rafael Wysocki: "These prevent a confusing PRMT-related message from being printed, drop an unnecessary header file include and update the list of ACPICA maintainers. Specifics: - Prevent a message about missing PRMT from being printed on systems that do not support PRM, which are the majority now (Aubrey Li). - Drop unnecessary header include from scan.c (Kari Argillander). - Update the list of ACPICA maintainers after recent departure of one of them (Rafael Wysocki)" * tag 'acpi-5.15-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPICA: Update the list of maintainers ACPI: PRM: Find PRMT table before parsing it ACPI: scan: Remove unneeded header linux/nls.h
2 parents d6498af + 8fbc1c5 commit 926de8c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ F: drivers/acpi/apei/
364364

365365
ACPI COMPONENT ARCHITECTURE (ACPICA)
366366
M: Robert Moore <robert.moore@intel.com>
367-
M: Erik Kaneda <erik.kaneda@intel.com>
368367
M: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
369368
L: linux-acpi@vger.kernel.org
370369
L: devel@acpica.org

drivers/acpi/prmt.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,18 @@ static acpi_status acpi_platformrt_space_handler(u32 function,
288288

289289
void __init init_prmt(void)
290290
{
291+
struct acpi_table_header *tbl;
291292
acpi_status status;
292-
int mc = acpi_table_parse_entries(ACPI_SIG_PRMT, sizeof(struct acpi_table_prmt) +
293+
int mc;
294+
295+
status = acpi_get_table(ACPI_SIG_PRMT, 0, &tbl);
296+
if (ACPI_FAILURE(status))
297+
return;
298+
299+
mc = acpi_table_parse_entries(ACPI_SIG_PRMT, sizeof(struct acpi_table_prmt) +
293300
sizeof (struct acpi_table_prmt_header),
294301
0, acpi_parse_prmt, 0);
302+
acpi_put_table(tbl);
295303
/*
296304
* Return immediately if PRMT table is not present or no PRM module found.
297305
*/

drivers/acpi/scan.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/signal.h>
1717
#include <linux/kthread.h>
1818
#include <linux/dmi.h>
19-
#include <linux/nls.h>
2019
#include <linux/dma-map-ops.h>
2120
#include <linux/platform_data/x86/apple.h>
2221
#include <linux/pgtable.h>

0 commit comments

Comments
 (0)