mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branches 'acpi-doc', 'acpi-pm', 'acpi-pcc' and 'acpi-tables'
* acpi-doc: MAINTAINERS / ACPI: add the necessary '/' according to entry rules ACPI / Documentation: add a missing '=' * acpi-pm: ACPI / sleep: mark acpi_sleep_dmi_check() __init * acpi-pcc: ACPI / PCC: Use pr_debug() for debug messages in pcc_init() * acpi-tables: ACPI / table: remove duplicate NULL check for the handler of acpi_table_parse()
This commit is contained in:
commit
ca45c879c2
7 changed files with 10 additions and 36 deletions
|
|
@ -177,12 +177,7 @@ static int __init slit_valid(struct acpi_table_slit *slit)
|
|||
|
||||
static int __init acpi_parse_slit(struct acpi_table_header *table)
|
||||
{
|
||||
struct acpi_table_slit *slit;
|
||||
|
||||
if (!table)
|
||||
return -EINVAL;
|
||||
|
||||
slit = (struct acpi_table_slit *)table;
|
||||
struct acpi_table_slit *slit = (struct acpi_table_slit *)table;
|
||||
|
||||
if (!slit_valid(slit)) {
|
||||
printk(KERN_INFO "ACPI: SLIT table looks invalid. Not used.\n");
|
||||
|
|
@ -260,11 +255,8 @@ acpi_parse_memory_affinity(struct acpi_subtable_header * header,
|
|||
|
||||
static int __init acpi_parse_srat(struct acpi_table_header *table)
|
||||
{
|
||||
struct acpi_table_srat *srat;
|
||||
if (!table)
|
||||
return -EINVAL;
|
||||
struct acpi_table_srat *srat = (struct acpi_table_srat *)table;
|
||||
|
||||
srat = (struct acpi_table_srat *)table;
|
||||
acpi_srat_revision = srat->header.revision;
|
||||
|
||||
/* Real work done in acpi_table_parse_srat below. */
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ static struct dmi_system_id acpisleep_dmi_table[] __initdata = {
|
|||
{},
|
||||
};
|
||||
|
||||
static void acpi_sleep_dmi_check(void)
|
||||
static void __init acpi_sleep_dmi_check(void)
|
||||
{
|
||||
int year;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue