@@ -152,7 +152,7 @@ static int vkms_modeset_init(struct vkms_device *vkmsdev)
return vkms_output_init(vkmsdev);
}
-static int vkms_create(struct vkms_config *config)
+int vkms_create(struct vkms_config *config)
{
int ret;
struct platform_device *pdev;
@@ -226,7 +226,7 @@ static int __init vkms_init(void)
return ret;
}
-static void vkms_destroy(struct vkms_config *config)
+void vkms_destroy(struct vkms_config *config)
{
struct platform_device *pdev;
@@ -231,6 +231,9 @@ struct vkms_device {
const struct vkms_config *config;
};
+int vkms_create(struct vkms_config *config);
+void vkms_destroy(struct vkms_config *config);
+
/*
* The following helpers are used to convert a member of a struct into its parent.
*/
In preparation for introduction of ConfigFS support, expose the vkms_destroy/create helper to remove a vkms device. Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com> --- drivers/gpu/drm/vkms/vkms_drv.c | 4 ++-- drivers/gpu/drm/vkms/vkms_drv.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-)