Skip to contentSkip to conversation

ACPI / tables: Cleanup the obsolete acpi_parse_entries

PATCH In review Baoquan He 2 participants 2 messages Apr 7, 2017 – Apr 11, 2017 ACPI

lore
Share & tools
lore

Baoquan He

author
#0 lore raw

PATCH 1/1 ACPI / tables: Cleanup the obsolete acpi_parse_entries

Function acpi_parse_entries is not used any more. And the being used function, acpi_table_parse_entries can substitute it if really needed.

So clean it up in this patch.

---
 drivers/acpi/tables.c | 16 ----------------
 include/linux/acpi.h  |  4 ----
 2 files changed, 20 deletions(-)
drivers/acpi/tables.c +0 -16
index 2604189..0dae722 100644
@@ -311,22 +311,6 @@ acpi_parse_entries_array(char *id, unsigned long table_size,
 }
 
 int __init
-acpi_parse_entries(char *id,
-			unsigned long table_size,
-			acpi_tbl_entry_handler handler,
-			struct acpi_table_header *table_header,
-			int entry_id, unsigned int max_entries)
-{
-	struct acpi_subtable_proc proc = {
-		.id		= entry_id,
-		.handler	= handler,
-	};
-
-	return acpi_parse_entries_array(id, table_size, table_header,
-			&proc, 1, max_entries);
-}
-
-int __init
 acpi_table_parse_entries_array(char *id,
 			 unsigned long table_size,
 			 struct acpi_subtable_proc *proc, int proc_num,
include/linux/acpi.h +0 -4
index 9b05886..83abbfc 100644
@@ -233,10 +233,6 @@ int acpi_numa_init (void);
 
 int acpi_table_init (void);
 int acpi_table_parse(char *id, acpi_tbl_table_handler handler);
-int __init acpi_parse_entries(char *id, unsigned long table_size,
-			      acpi_tbl_entry_handler handler,
-			      struct acpi_table_header *table_header,
-			      int entry_id, unsigned int max_entries);
 int __init acpi_table_parse_entries(char *id, unsigned long table_size,
 			      int entry_id,
 			      acpi_tbl_entry_handler handler,
Signature · 1 line
2.5.5
#1 lore raw
Quoted 5 lines · Baoquan He

Function acpi_parse_entries is not used any more. And the being used function, acpi_table_parse_entries can substitute it if really needed.

So clean it up in this patch.

It maybe also useful to mention the commit id f26527b142 & 9b3fedde27 who disuse the function.

Signature · 2 lines
Sincerely,
Cao jin