]> git.baikalelectronics.ru Git - kernel.git/commit
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 14 Sep 2009 22:35:05 +0000 (16:35 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 15 Sep 2009 00:38:19 +0000 (17:38 -0700)
commitf65f678b8ac78eb94abc3c1aec114b496fd03fce
treef2f0901b3a90c5a66ea140d1d7de52d1c7ba7924
parent8bd8f8fda3319a3fb51224f0f21147e04060d25d
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation

decode_hpp() looks up hotplug PCI parameters from ACPI and saves them
in the acpiphp_bridge structure.  These parameters (in bridge->hpp) are
only used by the acpiphp_set_hpp_values() -> program_hpp() path.  In
that path, we always call decode_hpp() before program_hpp(), so there's
no need to do it in init_bridge_misc().

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Reviewed-by: Alex Chiang <achiang@hp.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/acpiphp_glue.c