]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: rewrite PCI BAR reading code
authorMatthew Wilcox <matthew@wil.cx>
Mon, 28 Jul 2008 17:38:59 +0000 (13:38 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 28 Jul 2008 21:28:53 +0000 (14:28 -0700)
commitfa5f6199e2d6cc341d94c0a9e0d910b426a56523
treec331b97a2a7a5dfc6353f2538e5fd66a0d9a854d
parentb2dbffeddeb484a8111650704d447082566b6897
PCI: rewrite PCI BAR reading code

Factor out the code to read one BAR from the loop in pci_read_bases into
a new function, __pci_read_base.  The new code is slightly more
readable, better commented and removes the ifdef.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c