]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/exynos/decon5433: & vs | typo
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Feb 2017 07:46:20 +0000 (10:46 +0300)
committerInki Dae <inki.dae@samsung.com>
Tue, 21 Mar 2017 04:17:20 +0000 (13:17 +0900)
"&" was obviously intended instead of "|".  The original condition is
always true.

Fixes: b93c2e8b5d9d ("drm/exynos/decon5433: configure sysreg in case of hardware trigger")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index 0fd6f7a18364a69ba67cb000674593fc94041e19..cca32a4fdab39e6dd9eb83a98a92cdbb0026d986 100644 (file)
@@ -678,7 +678,7 @@ static int exynos5433_decon_probe(struct platform_device *pdev)
                ctx->out_type |= IFTYPE_I80;
        }
 
-       if (ctx->out_type | I80_HW_TRG) {
+       if (ctx->out_type & I80_HW_TRG) {
                ctx->sysreg = syscon_regmap_lookup_by_phandle(dev->of_node,
                                                        "samsung,disp-sysreg");
                if (IS_ERR(ctx->sysreg)) {