Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47539
b: refs/heads/master
c: 45257fa
h: refs/heads/master
i:
  47537: 4a22e6f
  47535: c5b8431
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Feb 11, 2007
1 parent aca3c17 commit e05c27b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18b95576bc6b9ef9270ec778e1d545c0ca8bbbbb
refs/heads/master: 45257fa9a5070e4c0739af1f81848ad557472b40
12 changes: 6 additions & 6 deletions trunk/drivers/char/mxser_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -2403,9 +2403,8 @@ static int __devinit mxser_initbrd(struct mxser_board *brd,
brd->info->name, brd->irq);
/* We hold resources, we need to release them. */
mxser_release_res(brd, pdev, 0);
return retval;
}
return 0;
return retval;
}

static int __init mxser_get_ISA_conf(int cap, struct mxser_board *brd)
Expand Down Expand Up @@ -2590,19 +2589,19 @@ static int __devinit mxser_probe(struct pci_dev *pdev,
}

/* mxser_initbrd will hook ISR. */
if (mxser_initbrd(brd, pdev) < 0)
goto err_relvec;
retval = mxser_initbrd(brd, pdev);
if (retval)
goto err_null;

for (i = 0; i < brd->info->nports; i++)
tty_register_device(mxvar_sdriver, brd->idx + i, &pdev->dev);

pci_set_drvdata(pdev, brd);

return 0;
err_relvec:
pci_release_region(pdev, 3);
err_relio:
pci_release_region(pdev, 2);
err_null:
brd->info = NULL;
err:
return retval;
Expand All @@ -2620,6 +2619,7 @@ static void __devexit mxser_remove(struct pci_dev *pdev)
tty_unregister_device(mxvar_sdriver, brd->idx + i);

mxser_release_res(brd, pdev, 1);
brd->info = NULL;
}

static struct pci_driver mxser_driver = {
Expand Down

0 comments on commit e05c27b

Please sign in to comment.