drm/exynos: Fix exynos_dpi_remove() parameter
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 24 Nov 2014 17:19:49 +0000 (15:19 -0200)
committerInki Dae <inki.dae@samsung.com>
Tue, 25 Nov 2014 02:58:41 +0000 (11:58 +0900)
exynos_dpi_remove() should receive a exynos_drm_display but when
DRM_EXYNOS_DPI was disabled it was receiving a struct device resulting in
ia compiler warning.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.h

index 2e4e91bf9b07554969c79fa678cd95cff51eae5c..2e5063488c5026ccd99e717d7e132289ca187dee 100644 (file)
@@ -307,7 +307,10 @@ int exynos_dpi_remove(struct exynos_drm_display *display);
 #else
 static inline struct exynos_drm_display *
 exynos_dpi_probe(struct device *dev) { return NULL; }
-static inline int exynos_dpi_remove(struct device *dev) { return 0; }
+static inline int exynos_dpi_remove(struct exynos_drm_display *display)
+{
+       return 0;
+}
 #endif
 
 #ifdef CONFIG_DRM_EXYNOS_VIDI