Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24461
b: refs/heads/master
c: 6d9eac3
h: refs/heads/master
i:
  24459: 67e6b17
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 28, 2006
1 parent 14d0ae8 commit 3cf12d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 829d5f68ec59ff7c0fdd472132680df8e4b64f3e
refs/heads/master: 6d9eac34104654aa129e365b8d48bbb8c957f186
8 changes: 5 additions & 3 deletions trunk/drivers/isdn/capi/capi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,7 @@ static int __init capi_init(void)
{
char *p;
char *compileinfo;
int major_ret;

if ((p = strchr(revision, ':')) != 0 && p[1]) {
strlcpy(rev, p + 2, sizeof(rev));
Expand All @@ -1493,11 +1494,12 @@ static int __init capi_init(void)
} else
strcpy(rev, "1.0");

if (register_chrdev(capi_major, "capi20", &capi_fops)) {
major_ret = register_chrdev(capi_major, "capi20", &capi_fops);
if (major_ret < 0) {
printk(KERN_ERR "capi20: unable to get major %d\n", capi_major);
return -EIO;
return major_ret;
}

capi_major = major_ret;
capi_class = class_create(THIS_MODULE, "capi");
if (IS_ERR(capi_class)) {
unregister_chrdev(capi_major, "capi20");
Expand Down

0 comments on commit 3cf12d1

Please sign in to comment.