Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> --- ltdrv.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ltdrv.c b/ltdrv.c index 21011a3..6fc5b2b 100644 --- a/ltdrv.c +++ b/ltdrv.c @@ -372,6 +372,11 @@ mars_device_probe (struct pci_dev *dev, const struct pci_device_id *ent) goto err_disable_pci; } + if (pci_request_regions(dev, "ltmodem")) { + MERROR("failed to register device i/o space\n"); + goto err_disable_pci; + } + pci_set_drvdata (dev, ltdev); selected = 1; @@ -391,6 +396,7 @@ static void __devexit mars_remove (struct pci_dev *dev) serial_v8250_unregister_port(ltdev->line); free_irq(ltdev->irq, ltdev); } + pci_release_regions(dev); pci_disable_device(dev); } -- 1.6.5.2