File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -288,10 +288,18 @@ static acpi_status acpi_platformrt_space_handler(u32 function,
288
288
289
289
void __init init_prmt (void )
290
290
{
291
+ struct acpi_table_header * tbl ;
291
292
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 ) +
293
300
sizeof (struct acpi_table_prmt_header ),
294
301
0 , acpi_parse_prmt , 0 );
302
+ acpi_put_table (tbl );
295
303
/*
296
304
* Return immediately if PRMT table is not present or no PRM module found.
297
305
*/
Original file line number Diff line number Diff line change 16
16
#include <linux/signal.h>
17
17
#include <linux/kthread.h>
18
18
#include <linux/dmi.h>
19
- #include <linux/nls.h>
20
19
#include <linux/dma-map-ops.h>
21
20
#include <linux/platform_data/x86/apple.h>
22
21
#include <linux/pgtable.h>
You can’t perform that action at this time.
0 commit comments