44 DRM_DEBUG_DRIVER(
"%s\n", __FILE__);
52 DRM_ERROR(
"failed to create encoder\n");
62 DRM_ERROR(
"failed to create connector\n");
64 goto err_destroy_encoder;
73 encoder->
funcs->destroy(encoder);
81 encoder->
funcs->destroy(encoder);
87 connector->
funcs->destroy(connector);
92 static int exynos_drm_subdrv_probe(
struct drm_device *dev,
108 ret = subdrv->
probe(dev, subdrv->
dev);
116 static void exynos_drm_subdrv_remove(
struct drm_device *dev,
119 DRM_DEBUG_DRIVER(
"%s\n", __FILE__);
128 unsigned int fine_cnt = 0;
131 DRM_DEBUG_DRIVER(
"%s\n", __FILE__);
137 err = exynos_drm_subdrv_probe(dev, subdrv);
139 DRM_DEBUG(
"exynos drm subdrv probe failed.\n");
153 err = exynos_drm_create_enc_conn(dev, subdrv);
155 DRM_DEBUG(
"failed to create encoder and connector.\n");
156 exynos_drm_subdrv_remove(dev, subdrv);
175 DRM_DEBUG_DRIVER(
"%s\n", __FILE__);
178 WARN(1,
"Unexpected drm device unregister!\n");
183 exynos_drm_subdrv_remove(dev, subdrv);
184 exynos_drm_destroy_enc_conn(subdrv);
193 DRM_DEBUG_DRIVER(
"%s\n", __FILE__);
206 DRM_DEBUG_DRIVER(
"%s\n", __FILE__);
224 ret = subdrv->
open(dev, subdrv->
dev, file);
235 subdrv->
close(dev, subdrv->
dev, file);
247 subdrv->
close(dev, subdrv->
dev, file);