Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54665
b: refs/heads/master
c: b2bbe38
h: refs/heads/master
i:
  54663: cd9d2b9
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed May 8, 2007
1 parent b3bf2a0 commit 580ef0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 19d0e8ce856a7628a630710aed82931ce1c7eb97
refs/heads/master: b2bbe383ef7e792e92a5f53be955e71bd253ab32
14 changes: 10 additions & 4 deletions trunk/drivers/char/dtlk.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,22 @@ static int dtlk_release(struct inode *inode, struct file *file)

static int __init dtlk_init(void)
{
int err;

dtlk_port_lpc = 0;
dtlk_port_tts = 0;
dtlk_busy = 0;
dtlk_major = register_chrdev(0, "dtlk", &dtlk_fops);
if (dtlk_major == 0) {
if (dtlk_major < 0) {
printk(KERN_ERR "DoubleTalk PC - cannot register device\n");
return 0;
return dtlk_major;
}
err = dtlk_dev_probe();
if (err) {
unregister_chrdev(dtlk_major, "dtlk");
return err;
}
if (dtlk_dev_probe() == 0)
printk(", MAJOR %d\n", dtlk_major);
printk(", MAJOR %d\n", dtlk_major);

init_waitqueue_head(&dtlk_process_list);

Expand Down

0 comments on commit 580ef0f

Please sign in to comment.