diff options
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 73f02ac53ba..09d884ba9e2 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c | |||
@@ -378,6 +378,12 @@ static int __init exynos_drm_init(void) | |||
378 | goto out_fimc; | 378 | goto out_fimc; |
379 | #endif | 379 | #endif |
380 | 380 | ||
381 | #ifdef CONFIG_DRM_EXYNOS_ROTATOR | ||
382 | ret = platform_driver_register(&rotator_driver); | ||
383 | if (ret < 0) | ||
384 | goto out_rotator; | ||
385 | #endif | ||
386 | |||
381 | #ifdef CONFIG_DRM_EXYNOS_IPP | 387 | #ifdef CONFIG_DRM_EXYNOS_IPP |
382 | ret = platform_driver_register(&ipp_driver); | 388 | ret = platform_driver_register(&ipp_driver); |
383 | if (ret < 0) | 389 | if (ret < 0) |
@@ -406,6 +412,11 @@ out_drm: | |||
406 | out_ipp: | 412 | out_ipp: |
407 | #endif | 413 | #endif |
408 | 414 | ||
415 | #ifdef CONFIG_DRM_EXYNOS_ROTATOR | ||
416 | platform_driver_unregister(&rotator_driver); | ||
417 | out_rotator: | ||
418 | #endif | ||
419 | |||
409 | #ifdef CONFIG_DRM_EXYNOS_FIMC | 420 | #ifdef CONFIG_DRM_EXYNOS_FIMC |
410 | platform_driver_unregister(&fimc_driver); | 421 | platform_driver_unregister(&fimc_driver); |
411 | out_fimc: | 422 | out_fimc: |
@@ -451,6 +462,10 @@ static void __exit exynos_drm_exit(void) | |||
451 | platform_driver_unregister(&ipp_driver); | 462 | platform_driver_unregister(&ipp_driver); |
452 | #endif | 463 | #endif |
453 | 464 | ||
465 | #ifdef CONFIG_DRM_EXYNOS_ROTATOR | ||
466 | platform_driver_unregister(&rotator_driver); | ||
467 | #endif | ||
468 | |||
454 | #ifdef CONFIG_DRM_EXYNOS_FIMC | 469 | #ifdef CONFIG_DRM_EXYNOS_FIMC |
455 | platform_driver_unregister(&fimc_driver); | 470 | platform_driver_unregister(&fimc_driver); |
456 | #endif | 471 | #endif |