aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/aspm.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-05-12 23:11:33 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-18 16:57:25 -0400
commitdc64cd1131a3b5762e26bd8b01dc79030dd0c555 (patch)
tree6a994b4e5fc840e071cc2e7510b35a8c7d549200 /drivers/pci/pcie/aspm.c
parent268a03a42d3377d5fb41e6e7cbdec4e0b65cab2e (diff)
PCI ASPM: fix typo in struct pcie_link_state
Fix a typo in struct pcie_link_state. The "sibiling" field in the struct pcie_link_state should be "sibling". Acked-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/aspm.c')
-rw-r--r--drivers/pci/pcie/aspm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 777b2c76caf5..419f1f3697c0 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -32,7 +32,7 @@ struct endpoint_state {
32}; 32};
33 33
34struct pcie_link_state { 34struct pcie_link_state {
35 struct list_head sibiling; 35 struct list_head sibling;
36 struct pci_dev *pdev; 36 struct pci_dev *pdev;
37 bool downstream_has_switch; 37 bool downstream_has_switch;
38 38
@@ -541,7 +541,7 @@ static void __pcie_aspm_configure_link_state(struct pci_dev *pdev,
541 state &= PCIE_LINK_STATE_L0S|PCIE_LINK_STATE_L1; 541 state &= PCIE_LINK_STATE_L0S|PCIE_LINK_STATE_L1;
542 542
543 /* check all links who have specific root port link */ 543 /* check all links who have specific root port link */
544 list_for_each_entry(leaf, &link_list, sibiling) { 544 list_for_each_entry(leaf, &link_list, sibling) {
545 if (!list_empty(&leaf->children) || 545 if (!list_empty(&leaf->children) ||
546 get_root_port_link(leaf) != root_port_link) 546 get_root_port_link(leaf) != root_port_link)
547 continue; 547 continue;
@@ -558,12 +558,12 @@ static void __pcie_aspm_configure_link_state(struct pci_dev *pdev,
558 * __pcie_aspm_config_link for the order 558 * __pcie_aspm_config_link for the order
559 **/ 559 **/
560 if (state & PCIE_LINK_STATE_L1) { 560 if (state & PCIE_LINK_STATE_L1) {
561 list_for_each_entry(leaf, &link_list, sibiling) { 561 list_for_each_entry(leaf, &link_list, sibling) {
562 if (get_root_port_link(leaf) == root_port_link) 562 if (get_root_port_link(leaf) == root_port_link)
563 __pcie_aspm_config_link(leaf->pdev, state); 563 __pcie_aspm_config_link(leaf->pdev, state);
564 } 564 }
565 } else { 565 } else {
566 list_for_each_entry_reverse(leaf, &link_list, sibiling) { 566 list_for_each_entry_reverse(leaf, &link_list, sibling) {
567 if (get_root_port_link(leaf) == root_port_link) 567 if (get_root_port_link(leaf) == root_port_link)
568 __pcie_aspm_config_link(leaf->pdev, state); 568 __pcie_aspm_config_link(leaf->pdev, state);
569 } 569 }
@@ -682,7 +682,7 @@ void pcie_aspm_init_link_state(struct pci_dev *pdev)
682 } 682 }
683 683
684 link_state->pdev = pdev; 684 link_state->pdev = pdev;
685 list_add(&link_state->sibiling, &link_list); 685 list_add(&link_state->sibling, &link_list);
686 686
687 if (link_state->downstream_has_switch) { 687 if (link_state->downstream_has_switch) {
688 /* 688 /*
@@ -729,7 +729,7 @@ void pcie_aspm_exit_link_state(struct pci_dev *pdev)
729 729
730 /* All functions are removed, so just disable ASPM for the link */ 730 /* All functions are removed, so just disable ASPM for the link */
731 __pcie_aspm_config_one_dev(parent, 0); 731 __pcie_aspm_config_one_dev(parent, 0);
732 list_del(&link_state->sibiling); 732 list_del(&link_state->sibling);
733 list_del(&link_state->link); 733 list_del(&link_state->link);
734 /* Clock PM is for endpoint device */ 734 /* Clock PM is for endpoint device */
735 735
@@ -806,7 +806,7 @@ static int pcie_aspm_set_policy(const char *val, struct kernel_param *kp)
806 down_read(&pci_bus_sem); 806 down_read(&pci_bus_sem);
807 mutex_lock(&aspm_lock); 807 mutex_lock(&aspm_lock);
808 aspm_policy = i; 808 aspm_policy = i;
809 list_for_each_entry(link_state, &link_list, sibiling) { 809 list_for_each_entry(link_state, &link_list, sibling) {
810 pdev = link_state->pdev; 810 pdev = link_state->pdev;
811 __pcie_aspm_configure_link_state(pdev, 811 __pcie_aspm_configure_link_state(pdev,
812 policy_to_aspm_state(pdev)); 812 policy_to_aspm_state(pdev));