Allow consumers of the acpi_table_parse()/acpi_table_parse_entries() API
to gracefully handle the acpi_disabled=1 case via return value
rather than checking the global flag themselves.
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
[Linux commit
e5b8fc6ac158f65598f58dba2c0d52ba3b412f52]
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
unsigned int count = 0;
unsigned long table_end;
+ if (acpi_disabled)
+ return -ENODEV;
+
if (!handler)
return -EINVAL;
{
struct acpi_table_header *table = NULL;
+ if (acpi_disabled)
+ return -ENODEV;
+
if (!handler)
return -EINVAL;