diff options
author | Zhao, Yu <yu.zhao@intel.com> | 2008-10-13 13:24:28 +0200 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-20 19:54:28 +0200 |
commit | 022edd86d7c864bc8fadc3c8ac4e6a464472ab05 (patch) | |
tree | 6495a6f473837f1c880c052d76ff9358de76297d /drivers/pci/setup-res.c | |
parent | PCI: use same arg names in PCI_VDEVICE comment (diff) | |
download | linux-022edd86d7c864bc8fadc3c8ac4e6a464472ab05.tar.xz linux-022edd86d7c864bc8fadc3c8ac4e6a464472ab05.zip |
PCI: use resource_size() everywhere.
This is a cleanup that replaces the resource calculation formula with
resource_size().
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/setup-res.c')
-rw-r--r-- | drivers/pci/setup-res.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index d4b5c690eaa7..2dbd96cce2d8 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c @@ -129,7 +129,7 @@ int pci_assign_resource(struct pci_dev *dev, int resno) resource_size_t size, min, align; int ret; - size = res->end - res->start + 1; + size = resource_size(res); min = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM; align = resource_alignment(res); |