Skip to content

Commit 8fbc1c5

Browse files
committed
Merge branches 'acpi-scan' and 'acpi-prm'
* acpi-scan: ACPI: scan: Remove unneeded header linux/nls.h * acpi-prm: ACPI: PRM: Find PRMT table before parsing it
3 parents 22d692b + 66e0aea + 3265cc3 commit 8fbc1c5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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)