Revert "LOCAL / drm/exynos: fimd: Remove unused 'ret' variable"
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 31 Aug 2015 08:08:19 +0000 (17:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:47:51 +0000 (13:47 +0900)
This reverts commit aacf1c3ffc5a1a1ba1d51e258b4af722d68c6407 to fix
build error (tizen_trats2_defconfig):
../drivers/gpu/drm/exynos/exynos_drm_fimd.c: In function ‘fimd_bind’:
../drivers/gpu/drm/exynos/exynos_drm_fimd.c:1037:3: error: ‘ret’ undeclared (first use in this function)
../drivers/gpu/drm/exynos/exynos_drm_fimd.c:1037:3: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [drivers/gpu/drm/exynos/exynos_drm_fimd.o] Error 1

drivers/gpu/drm/exynos/exynos_drm_fimd.c

index b7ff2b2..79b3486 100644 (file)
@@ -1027,6 +1027,7 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
        struct exynos_drm_plane *exynos_plane;
        enum drm_plane_type type;
        unsigned int zpos;
+       int ret;
 
        ctx->drm_dev = drm_dev;
        ctx->pipe = priv->pipe++;