Skip to content

Commit

Permalink
[PATCH] skge: use pci_read_config_word
Browse files Browse the repository at this point in the history
Rather than accessing PCI config space through MMIO space, use the
standard PCI functions.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Jun 27, 2005
1 parent 6b0c148 commit 467b341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2692,10 +2692,10 @@ 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),
status | PCI_STATUS_ERROR_BITS);
pci_write_config_word(hw->pdev, PCI_STATUS,
status | PCI_STATUS_ERROR_BITS);
skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF);
}

Expand Down

0 comments on commit 467b341

Please sign in to comment.