Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43709
b: refs/heads/master
c: 55e7071
h: refs/heads/master
i:
  43707: 85848b3
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 63c38dc commit fab5519
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 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: 42f6384fe4747f65dc27e8a5f96502204558203b
refs/heads/master: 55e7071a3c6cdb65fb5ce3ea9c692a8d78ed0844
18 changes: 3 additions & 15 deletions trunk/drivers/char/sx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2680,28 +2680,16 @@ static int __init sx_init(void)
static void __exit sx_exit (void)
{
int i;
struct sx_board *board;

func_enter();
#ifdef CONFIG_EISA
eisa_driver_unregister(&sx_eisadriver);
#endif
pci_unregister_driver(&sx_pcidriver);
for (i = 0; i < SX_NBOARDS; i++) {
board = &boards[i];
if (board->flags & SX_BOARD_INITIALIZED) {
sx_dprintk (SX_DEBUG_CLEANUP, "Cleaning up board at %p\n", board->base);
/* The board should stop messing with us.
(actually I mean the interrupt) */
sx_reset (board);
if ((board->irq) && (board->flags & SX_IRQ_ALLOCATED))
free_irq (board->irq, board);

/* It is safe/allowed to del_timer a non-active timer */
del_timer (& board->timer);
iounmap(board->base);
}
}
for (i = 0; i < SX_NBOARDS; i++)
sx_remove_card(&boards[i]);

if (misc_deregister(&sx_fw_device) < 0) {
printk (KERN_INFO "sx: couldn't deregister firmware loader device\n");
}
Expand Down

0 comments on commit fab5519

Please sign in to comment.