Lines Matching refs:drm_class
58 struct class *drm_class; variable
114 drm_class = class_create(THIS_MODULE, "drm"); in drm_sysfs_init()
115 if (IS_ERR(drm_class)) in drm_sysfs_init()
116 return PTR_ERR(drm_class); in drm_sysfs_init()
118 err = class_create_file(drm_class, &class_attr_version.attr); in drm_sysfs_init()
120 class_destroy(drm_class); in drm_sysfs_init()
121 drm_class = NULL; in drm_sysfs_init()
125 drm_class->devnode = drm_devnode; in drm_sysfs_init()
138 if (IS_ERR_OR_NULL(drm_class)) in drm_sysfs_destroy()
141 class_remove_file(drm_class, &class_attr_version.attr); in drm_sysfs_destroy()
142 class_destroy(drm_class); in drm_sysfs_destroy()
143 drm_class = NULL; in drm_sysfs_destroy()
333 kdev->class = drm_class; in drm_sysfs_connector_add()
460 kdev->class = drm_class; in drm_sysfs_minor_alloc()
487 if (!drm_class || IS_ERR(drm_class)) in drm_class_device_register()
490 dev->class = drm_class; in drm_class_device_register()