aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/isicom.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 05:38:53 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:57 -0500
commit78028da91e05146c9ce0c9db2fea53e0cded1e81 (patch)
treebd5f6e54b722538729d760960273d1affd76fd43 /drivers/char/isicom.c
parent938a7023bbbc626b0ab7ece13fe8cb26cfcc486b (diff)
[PATCH] Char: isicom, use pci_request_region
Use pci_request_region in pci probing function instead of request_region. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/isicom.c')
-rw-r--r--drivers/char/isicom.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c
index 604882dac2d2..91b978445229 100644
--- a/drivers/char/isicom.c
+++ b/drivers/char/isicom.c
@@ -1789,7 +1789,8 @@ static int __devinit isicom_probe(struct pci_dev *pdev,
1789 1789
1790 pci_set_drvdata(pdev, board); 1790 pci_set_drvdata(pdev, board);
1791 1791
1792 if (!request_region(board->base, 16, ISICOM_NAME)) { 1792 retval = pci_request_region(pdev, 3, ISICOM_NAME);
1793 if (retval) {
1793 dev_err(&pdev->dev, "I/O Region 0x%lx-0x%lx is busy. Card%d " 1794 dev_err(&pdev->dev, "I/O Region 0x%lx-0x%lx is busy. Card%d "
1794 "will be disabled.\n", board->base, board->base + 15, 1795 "will be disabled.\n", board->base, board->base + 15,
1795 index + 1); 1796 index + 1);
@@ -1822,7 +1823,7 @@ static int __devinit isicom_probe(struct pci_dev *pdev,
1822errunri: 1823errunri:
1823 free_irq(board->irq, board); 1824 free_irq(board->irq, board);
1824errunrr: 1825errunrr:
1825 release_region(board->base, 16); 1826 pci_release_region(pdev, 3);
1826err: 1827err:
1827 board->base = 0; 1828 board->base = 0;
1828 return retval; 1829 return retval;
@@ -1837,7 +1838,7 @@ static void __devexit isicom_remove(struct pci_dev *pdev)
1837 tty_unregister_device(isicom_normal, board->index * 16 + i); 1838 tty_unregister_device(isicom_normal, board->index * 16 + i);
1838 1839
1839 free_irq(board->irq, board); 1840 free_irq(board->irq, board);
1840 release_region(board->base, 16); 1841 pci_release_region(pdev, 3);
1841} 1842}
1842 1843
1843static int __init isicom_init(void) 1844static int __init isicom_init(void)