From: Bjorn Helgaas Date: Mon, 14 Sep 2009 22:35:40 +0000 (-0600) Subject: PCI hotplug: clean up acpi_run_hpp() X-Git-Tag: v2.6.32-rc1~670^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e3573db2bd5db6925159279d99576a4635bdb66;p=pandora-kernel.git PCI hotplug: clean up acpi_run_hpp() This patch cleans up acpi_run_hpp() and follows the style of acpi_run_hpx(): - remove unnecessary METHOD_NAME__HPP #define - use ACPI_ALLOCATE_BUFFER rather than evaluating _HPP twice - validate _HPP package length (defined as 4 by the spec) - avoid ref to undefined data if FW provides < 4 elements - remove temporary nui[] array Signed-off-by: Bjorn Helgaas Reviewed-by: Alex Chiang Reviewed-by: Kenji Kaneshige Acked-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed