Lines Matching +full:class +full:- +full:d
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
20 static const struct class class = { variable
32 static const struct class user_class = {
49 cdev->owner = THIS_MODULE; in hfi1_cdev_init()
51 kobject_set_name(&cdev->kobj, name); in hfi1_cdev_init()
55 pr_err("Could not add cdev for minor %d, %s (err %d)\n", in hfi1_cdev_init()
56 minor, name, -ret); in hfi1_cdev_init()
63 device = device_create(&class, NULL, dev, NULL, "%s", name); in hfi1_cdev_init()
68 pr_err("Could not create device for minor %d, %s (err %d)\n", in hfi1_cdev_init()
69 minor, name, -ret); in hfi1_cdev_init()
102 pr_err("Could not allocate chrdev region (err %d)\n", -ret); in dev_init()
106 ret = class_register(&class); in dev_init()
108 pr_err("Could not create device class (err %d)\n", -ret); in dev_init()
115 pr_err("Could not create device class for user accessible files (err %d)\n", in dev_init()
116 -ret); in dev_init()
117 class_unregister(&class); in dev_init()
128 class_unregister(&class); in dev_cleanup()