if (ret)
goto err_unbind_all;
- /* Probe non kms sub drivers and virtual display driver. */
- ret = exynos_drm_device_subdrv_probe(dev);
- if (ret)
- goto err_cleanup_vblank;
-
/*
* enable drm irq mode.
* - with irq_enabled = true, we can use the vblank feature.
return 0;
-err_cleanup_vblank:
- drm_vblank_cleanup(dev);
err_unbind_all:
component_unbind_all(dev->dev, dev);
err_mode_config_cleanup:
static int exynos_drm_unload(struct drm_device *dev)
{
- exynos_drm_device_subdrv_remove(dev);
-
exynos_drm_fbdev_fini(dev);
drm_kms_helper_poll_fini(dev);
goto err_unregister_ipp_drv;
#endif
+ /* Probe non kms sub drivers and virtual display driver. */
+ ret = exynos_drm_device_subdrv_probe(platform_get_drvdata(pdev));
+ if (ret)
+ goto err_unregister_resources;
+
return ret;
+err_unregister_resources:
#ifdef CONFIG_DRM_EXYNOS_IPP
+ exynos_platform_device_ipp_unregister();
err_unregister_ipp_drv:
platform_driver_unregister(&ipp_driver);
err_unregister_gsc_drv:
static int exynos_drm_platform_remove(struct platform_device *pdev)
{
+ exynos_drm_device_subdrv_remove(platform_get_drvdata(pdev));
+
#ifdef CONFIG_DRM_EXYNOS_IPP
exynos_platform_device_ipp_unregister();
platform_driver_unregister(&ipp_driver);