Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 467b3417 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik
Browse files

[PATCH] skge: use pci_read_config_word



Rather than accessing PCI config space through MMIO space, use the
standard PCI functions.

Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent 6b0c1480
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2692,9 +2692,9 @@ static void skge_pci_clear(struct skge_hw *hw)
{
	u16 status;

	status = skge_read16(hw, SKGEPCI_REG(PCI_STATUS));
	pci_read_config_word(hw->pdev, PCI_STATUS, &status);
	skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_ON);
	skge_write16(hw, SKGEPCI_REG(PCI_STATUS),
	pci_write_config_word(hw->pdev, PCI_STATUS,
			      status | PCI_STATUS_ERROR_BITS);
	skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF);
}