]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: handle 64-bit resources better on 32-bit machines
authorMatthew Wilcox <matthew@wil.cx>
Mon, 28 Jul 2008 17:39:00 +0000 (13:39 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 28 Jul 2008 21:29:04 +0000 (14:29 -0700)
commitc721a2f4c1311c5b02b4705780af8c6429a6581b
treed7ab414b929fed34d9b15bf0c636e9591c4673dd
parentfa5f6199e2d6cc341d94c0a9e0d910b426a56523
PCI: handle 64-bit resources better on 32-bit machines

If the kernel is configured to support 64-bit resources on a 32-bit
machine, we can support 64-bit BARs properly.  Just change the condition
to check sizeof(resource_size_t) instead of BITS_PER_LONG.

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