From: Y.C. Chen <yc_chen@aspeedtech.com>
Date: Wed, 10 Sep 2014 04:07:54 +0000 (+0800)
Subject: drm/ast: AST2000 cannot be detected correctly
X-Git-Tag: firefly_0821_release~3679^2~1516
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d287fccb8d5d5ece2b085ac4119e4a4cb7ffbdaa;p=firefly-linux-kernel-4.4.55.git

drm/ast: AST2000 cannot be detected correctly

commit 83502a5d34386f7c6973bc70e1c423f55f5a2e3a upstream.

Type error and cause AST2000 cannot be detected correctly

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Reviewed-by: Egbert Eich <eich@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---

diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index f60fd7bd1183..96f874a508e2 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -100,7 +100,7 @@ static int ast_detect_chip(struct drm_device *dev)
 			}
 			ast->vga2_clone = false;
 		} else {
-			ast->chip = 2000;
+			ast->chip = AST2000;
 			DRM_INFO("AST 2000 detected\n");
 		}
 	}