@@ -34,6 +34,7 @@
#include <linux/slab.h>
#include <drm/drm_drv.h>
+#include <drm/drmfs.h>
#include <drm/drmP.h>
#include "drm_crtc_internal.h"
@@ -828,6 +829,7 @@ static void drm_core_exit(void)
{
unregister_chrdev(DRM_MAJOR, "drm");
debugfs_remove(drm_debugfs_root);
+ drmfs_fini();
drm_sysfs_destroy();
idr_destroy(&drm_minors_idr);
drm_connector_ida_destroy();
@@ -848,6 +850,10 @@ static int __init drm_core_init(void)
goto error;
}
+ ret = drmfs_init();
+ if (ret < 0)
+ DRM_ERROR("Cannot create DRM FS: %d\n", ret);
+
drm_debugfs_root = debugfs_create_dir("dri", NULL);
if (!drm_debugfs_root) {
ret = -ENOMEM;