diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-02-10 04:45:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:29 -0500 |
commit | 1a221026c3de9e6c05e6343e37205b0369ebbeff (patch) | |
tree | 2cc36b8e57346886ed117e9e0f3edeeabec03aad /drivers/char/mxser_new.c | |
parent | 45257fa9a5070e4c0739af1f81848ad557472b40 (diff) |
[PATCH] Char: mxser_new, do not put pdev
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>
Diffstat (limited to 'drivers/char/mxser_new.c')
-rw-r--r-- | drivers/char/mxser_new.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index f078ddf48b79..0b66056cd400 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c | |||
@@ -2348,7 +2348,6 @@ static void mxser_release_res(struct mxser_board *brd, struct pci_dev *pdev, | |||
2348 | #ifdef CONFIG_PCI | 2348 | #ifdef CONFIG_PCI |
2349 | pci_release_region(pdev, 2); | 2349 | pci_release_region(pdev, 2); |
2350 | pci_release_region(pdev, 3); | 2350 | pci_release_region(pdev, 3); |
2351 | pci_dev_put(pdev); | ||
2352 | #endif | 2351 | #endif |
2353 | } else { | 2352 | } else { |
2354 | release_region(brd->ports[0].ioaddr, 8 * brd->info->nports); | 2353 | release_region(brd->ports[0].ioaddr, 8 * brd->info->nports); |