diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-13 02:07:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-27 18:24:00 +0200 |
commit | 2427ddd8fae2febe3f5ac1ba76b092541304d9f0 (patch) | |
tree | 29d98aa03b1331fb1d1a9aaf3a6dddcc7eb48b11 /drivers/serial/8250_pci.c | |
parent | [PATCH] 64bit resource: change pnp core to use resource_size_t (diff) | |
download | linux-2427ddd8fae2febe3f5ac1ba76b092541304d9f0.tar.xz linux-2427ddd8fae2febe3f5ac1ba76b092541304d9f0.zip |
[PATCH] 64bit Resource: convert a few remaining drivers to use resource_size_t where needed
Based on a patch series originally from Vivek Goyal <vgoyal@in.ibm.com>
Cc: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/8250_pci.c')
-rw-r--r-- | drivers/serial/8250_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index 94886c000d2a..864ef859be56 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c @@ -594,8 +594,8 @@ pci_default_setup(struct serial_private *priv, struct pciserial_board *board, else offset += idx * board->uart_offset; - maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) / - (8 << board->reg_shift); + maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >> + (board->reg_shift + 3); if (board->flags & FL_REGION_SZ_CAP && idx >= maxnr) return 1; |