[PATCH] Char: mxser_new, do not put pdev
authorJiri Slaby <jirislaby@gmail.com>
Sat, 10 Feb 2007 09:45:21 +0000 (01:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:29 +0000 (10:51 -0800)
We don't call pci_dev_get, so do not call pci_dev_put in the pci release
function.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mxser_new.c

index f078ddf48b791ae6b4152ac0bbb753968558ca7b..0b66056cd400481b56f1bf852efcbc6320ffd9d7 100644 (file)
@@ -2348,7 +2348,6 @@ static void mxser_release_res(struct mxser_board *brd, struct pci_dev *pdev,
 #ifdef CONFIG_PCI
                pci_release_region(pdev, 2);
                pci_release_region(pdev, 3);
-               pci_dev_put(pdev);
 #endif
        } else {
                release_region(brd->ports[0].ioaddr, 8 * brd->info->nports);