From e399fc0d216533a5351631b6bc8bb97c898bc877 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 3 Mar 2015 00:08:41 +0000 Subject: [pci] Rewrite unrelicensable portions of pci.h Signed-off-by: Michael Brown --- src/drivers/net/prism2_plx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/net/prism2_plx.c') diff --git a/src/drivers/net/prism2_plx.c b/src/drivers/net/prism2_plx.c index 47e361404..a73b0e087 100644 --- a/src/drivers/net/prism2_plx.c +++ b/src/drivers/net/prism2_plx.c @@ -54,10 +54,10 @@ static int prism2_find_plx ( hfa384x_t *hw, struct pci_device *p ) /* Obtain all memory and IO base addresses */ pci_read_config_dword( p, PLX_LOCAL_CONFIG_REGISTER_BASE, &plx_lcr); - plx_lcr &= PCI_BASE_ADDRESS_IO_MASK; + plx_lcr &= ~PCI_BASE_ADDRESS_IO_MASK; pci_read_config_dword( p, PRISM2_PLX_ATTR_MEM_BASE, &attr_mem); pci_read_config_dword( p, PRISM2_PLX_IO_BASE, &iobase); - iobase &= PCI_BASE_ADDRESS_IO_MASK; + iobase &= ~PCI_BASE_ADDRESS_IO_MASK; /* Fill out hw structure */ hw->iobase = iobase; -- cgit v1.2.3-55-g7522