Home
last modified time | relevance | path

Searched refs:drm_class (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/
Ddrm_sysfs.c46 struct class *drm_class; variable
69 drm_class = class_create(THIS_MODULE, "drm"); in drm_sysfs_init()
70 if (IS_ERR(drm_class)) in drm_sysfs_init()
71 return PTR_ERR(drm_class); in drm_sysfs_init()
73 err = class_create_file(drm_class, &class_attr_version.attr); in drm_sysfs_init()
75 class_destroy(drm_class); in drm_sysfs_init()
76 drm_class = NULL; in drm_sysfs_init()
80 drm_class->devnode = drm_devnode; in drm_sysfs_init()
91 if (IS_ERR_OR_NULL(drm_class)) in drm_sysfs_destroy()
93 class_remove_file(drm_class, &class_attr_version.attr); in drm_sysfs_destroy()
[all …]
Ddrm_internal.h94 extern struct class *drm_class;