aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-07-09 14:55:50 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:02:11 -0400
commitb7b095c154c50ee753832bbf78e8690c492fc8f6 (patch)
tree91373859e5df37aee39b44756f58de29ce5d43cc
parent579082df38839efc5b14aa3f48b8806e3e8dc5c2 (diff)
PCI: pci-x-pci-express-read-control-interfaces cleanups
- remove unneeded local - 80-col fix Cc: Peter Oruba <peter.oruba@amd.com> Cc: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/pci/pci.c6
-rw-r--r--drivers/pci/quirks.c4
2 files changed, 4 insertions, 6 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 1bb879959a20..d9fc1bd1f3e8 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1383,7 +1383,7 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
1383 */ 1383 */
1384int pcix_get_max_mmrbc(struct pci_dev *dev) 1384int pcix_get_max_mmrbc(struct pci_dev *dev)
1385{ 1385{
1386 int ret, err, cap; 1386 int err, cap;
1387 u32 stat; 1387 u32 stat;
1388 1388
1389 cap = pci_find_capability(dev, PCI_CAP_ID_PCIX); 1389 cap = pci_find_capability(dev, PCI_CAP_ID_PCIX);
@@ -1394,9 +1394,7 @@ int pcix_get_max_mmrbc(struct pci_dev *dev)
1394 if (err) 1394 if (err)
1395 return -EINVAL; 1395 return -EINVAL;
1396 1396
1397 ret = (stat & PCI_X_STATUS_MAX_READ) >> 12; 1397 return (stat & PCI_X_STATUS_MAX_READ) >> 12;
1398
1399 return ret;
1400} 1398}
1401EXPORT_SYMBOL(pcix_get_max_mmrbc); 1399EXPORT_SYMBOL(pcix_get_max_mmrbc);
1402 1400
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index f75ade6f0602..c559085c89a5 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -633,8 +633,8 @@ static void __init quirk_amd_8131_mmrbc(struct pci_dev *dev)
633 633
634 pci_read_config_byte(dev, PCI_REVISION_ID, &revid); 634 pci_read_config_byte(dev, PCI_REVISION_ID, &revid);
635 if (dev->subordinate && revid <= 0x12) { 635 if (dev->subordinate && revid <= 0x12) {
636 printk(KERN_INFO "AMD8131 rev %x detected, disabling PCI-X MMRBC\n", 636 printk(KERN_INFO "AMD8131 rev %x detected, disabling PCI-X "
637 revid); 637 "MMRBC\n", revid);
638 dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MMRBC; 638 dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MMRBC;
639 } 639 }
640} 640}