projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b0c148
)
[PATCH] skge: use pci_read_config_word
author
Stephen Hemminger
<shemminger@osdl.org>
Mon, 27 Jun 2005 18:33:05 +0000
(11:33 -0700)
committer
Jeff Garzik
<jgarzik@pobox.com>
Mon, 27 Jun 2005 22:05:05 +0000
(18:05 -0400)
Rather than accessing PCI config space through MMIO space, use the
standard PCI functions.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
drivers/net/skge.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/skge.c
b/drivers/net/skge.c
index 210029a736427784b142c13f7783c1df329013ca..992410376f637dfc6ee4598b38a2c693f5192bf7 100644
(file)
--- a/
drivers/net/skge.c
+++ b/
drivers/net/skge.c
@@
-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);
}