IB/ipath: Fix PCI config write size used to clear linkctrl error bits
[firefly-linux-kernel-4.4.55.git] / drivers / infiniband / hw / ipath / ipath_iba6110.c
index 19e3955304c0a79ad5531fa9cbfae5fe17c73891..d241f1c7c93e9a553eabd93c4c029bbc73dbca64 100644 (file)
@@ -845,7 +845,7 @@ static void slave_or_pri_blk(struct ipath_devdata *dd, struct pci_dev *pdev,
                        /*
                         * now write them back to clear the error.
                         */
-                       pci_write_config_byte(pdev, link_off,
+                       pci_write_config_word(pdev, link_off,
                                              linkctrl & (0xf << 8));
                }
        }