Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5229
b: refs/heads/master
c: 2d0d099
h: refs/heads/master
i:
  5227: ef01518
v: v3
  • Loading branch information
Tom Duffy authored and Linus Torvalds committed Jul 27, 2005
1 parent fafd7c3 commit 118788b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: a5b74540770cb28b8ae779d0c27e228fe7500669
refs/heads/master: 2d0d099f1950bda2f712364a3bf74f20ddb61190
13 changes: 5 additions & 8 deletions trunk/drivers/infiniband/core/ucm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ static struct file_operations ib_ucm_fops = {
};


static struct class_simple *ib_ucm_class;
static struct class *ib_ucm_class;
static struct cdev ib_ucm_cdev;

static int __init ib_ucm_init(void)
Expand All @@ -1360,17 +1360,14 @@ static int __init ib_ucm_init(void)
goto err_cdev;
}

ib_ucm_class = class_simple_create(THIS_MODULE, "infiniband_cm");
ib_ucm_class = class_create(THIS_MODULE, "infiniband_cm");
if (IS_ERR(ib_ucm_class)) {
result = PTR_ERR(ib_ucm_class);
printk(KERN_ERR "UCM: Error <%d> creating class\n", result);
goto err_class;
}

class_simple_device_add(ib_ucm_class,
IB_UCM_DEV,
NULL,
"ucm");
class_device_create(ib_ucm_class, IB_UCM_DEV, NULL, "ucm");

idr_init(&ctx_id_table);
init_MUTEX(&ctx_id_mutex);
Expand All @@ -1386,8 +1383,8 @@ static int __init ib_ucm_init(void)

static void __exit ib_ucm_cleanup(void)
{
class_simple_device_remove(IB_UCM_DEV);
class_simple_destroy(ib_ucm_class);
class_device_destroy(ib_ucm_class, IB_UCM_DEV);
class_destroy(ib_ucm_class);
cdev_del(&ib_ucm_cdev);
unregister_chrdev_region(IB_UCM_DEV, 1);
}
Expand Down

0 comments on commit 118788b

Please sign in to comment.