diff options
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/jsm/jsm_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/jsm/jsm_driver.c b/drivers/tty/serial/jsm/jsm_driver.c index 18f548449c63..96da17868cf3 100644 --- a/drivers/tty/serial/jsm/jsm_driver.c +++ b/drivers/tty/serial/jsm/jsm_driver.c | |||
@@ -125,7 +125,7 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_device | |||
125 | brd->bd_uart_offset = 0x200; | 125 | brd->bd_uart_offset = 0x200; |
126 | brd->bd_dividend = 921600; | 126 | brd->bd_dividend = 921600; |
127 | 127 | ||
128 | brd->re_map_membase = ioremap(brd->membase, 0x1000); | 128 | brd->re_map_membase = ioremap(brd->membase, pci_resource_len(pdev, 0)); |
129 | if (!brd->re_map_membase) { | 129 | if (!brd->re_map_membase) { |
130 | dev_err(&pdev->dev, | 130 | dev_err(&pdev->dev, |
131 | "card has no PCI Memory resources, " | 131 | "card has no PCI Memory resources, " |