Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75709
b: refs/heads/master
c: d78b036
h: refs/heads/master
i:
  75707: 8a669d0
v: v3
  • Loading branch information
Tony Jones authored and Greg Kroah-Hartman committed Jan 25, 2008
1 parent d12f0cd commit bdfc5a6
Show file tree
Hide file tree
Showing 2 changed files with 4 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: dbc1272ed4a9ce45ecc50e7ea7d52e7413eb1a4f
refs/heads/master: d78b03683a6f96645d265abdd5c556547dc76d70
6 changes: 3 additions & 3 deletions trunk/drivers/isdn/capi/capi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,11 +1544,11 @@ static int __init capi_init(void)
return PTR_ERR(capi_class);
}

class_device_create(capi_class, NULL, MKDEV(capi_major, 0), NULL, "capi");
device_create(capi_class, NULL, MKDEV(capi_major, 0), "capi");

#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
if (capinc_tty_init() < 0) {
class_device_destroy(capi_class, MKDEV(capi_major, 0));
device_destroy(capi_class, MKDEV(capi_major, 0));
class_destroy(capi_class);
unregister_chrdev(capi_major, "capi20");
return -ENOMEM;
Expand Down Expand Up @@ -1576,7 +1576,7 @@ static void __exit capi_exit(void)
{
proc_exit();

class_device_destroy(capi_class, MKDEV(capi_major, 0));
device_destroy(capi_class, MKDEV(capi_major, 0));
class_destroy(capi_class);
unregister_chrdev(capi_major, "capi20");

Expand Down

0 comments on commit bdfc5a6

Please sign in to comment.