#include <drm/drm_gem_shmem_helper.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_ioctl.h>
+#include <drm/drm_managed.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_simple_kms_helper.h>
gm12u320_usb_free(gm12u320);
drm_mode_config_cleanup(dev);
drm_dev_fini(dev);
- kfree(gm12u320);
}
DEFINE_DRM_GEM_FOPS(gm12u320_fops);
return ret;
}
dev->dev_private = gm12u320;
+ drmm_add_final_kfree(dev, gm12u320);
drm_mode_config_init(dev);
dev->mode_config.min_width = GM12U320_USER_WIDTH;