• Sachin Kamat's avatar
    drm/exynos: Fix de-registration ordering · 0013fc9e
    Sachin Kamat authored
    'exynos_drm_pdev' was not getting unregistered if platform_driver_register()
    failed. Fix the ordering to allow this. This also fixes the below warning by
    moving the #endif macro. While at it also fix the ordering in the exit function
    so that de-registration happens in opposite order of registration.
    drivers/gpu/drm/exynos/exynos_drm_drv.c:768:1: warning: label
    'err_unregister_pd' defined but not used [-Wunused-label]
    Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
    Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
    0013fc9e
exynos_drm_drv.c 18.9 KB