aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-06-27 14:33:05 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-06-27 18:05:05 -0400
commit467b3417f9985b9a83ccebef2d4e07e3e8a9495e (patch)
treee67729c18bc0003f9a5cad4cc5295f2be0918144 /drivers
parent6b0c1480491a9e2d9d34368e09e6acddbb173515 (diff)
[PATCH] skge: use pci_read_config_word
Rather than accessing PCI config space through MMIO space, use the standard PCI functions. Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/skge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 210029a73642..992410376f63 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -2692,10 +2692,10 @@ static void skge_pci_clear(struct skge_hw *hw)
2692{ 2692{
2693 u16 status; 2693 u16 status;
2694 2694
2695 status = skge_read16(hw, SKGEPCI_REG(PCI_STATUS)); 2695 pci_read_config_word(hw->pdev, PCI_STATUS, &status);
2696 skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_ON); 2696 skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_ON);
2697 skge_write16(hw, SKGEPCI_REG(PCI_STATUS), 2697 pci_write_config_word(hw->pdev, PCI_STATUS,
2698 status | PCI_STATUS_ERROR_BITS); 2698 status | PCI_STATUS_ERROR_BITS);
2699 skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF); 2699 skge_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF);
2700} 2700}
2701 2701