Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43699
b: refs/heads/master
c: 906cdec
h: refs/heads/master
i:
  43697: 80cc4d2
  43695: 06549aa
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent d0df15d commit 21b70dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: f0671378426d9768bf20d5e0f8389374dcdc2abf
refs/heads/master: 906cdecbedae93e3f63651000f620acddf4debe9
8 changes: 3 additions & 5 deletions trunk/drivers/char/isicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ static struct pci_driver isicom_driver = {
static int prev_card = 3; /* start servicing isi_card[0] */
static struct tty_driver *isicom_normal;

static DECLARE_COMPLETION(isi_timerdone);
static struct timer_list tx;
static char re_schedule = 1;

Expand Down Expand Up @@ -514,7 +515,7 @@ static void isicom_tx(unsigned long _data)
/* schedule another tx for hopefully in about 10ms */
sched_again:
if (!re_schedule) {
re_schedule = 2;
complete(&isi_timerdone);
return;
}

Expand Down Expand Up @@ -1924,12 +1925,9 @@ static int __init isicom_init(void)

static void __exit isicom_exit(void)
{
unsigned int index = 0;

re_schedule = 0;

while (re_schedule != 2 && index++ < 100)
msleep(10);
wait_for_completion_timeout(&isi_timerdone, HZ);

pci_unregister_driver(&isicom_driver);
tty_unregister_driver(isicom_normal);
Expand Down

0 comments on commit 21b70dd

Please sign in to comment.