drm/ast: AST2000 cannot be detected correctly
authorY.C. Chen <yc_chen@aspeedtech.com>
Wed, 10 Sep 2014 04:07:54 +0000 (12:07 +0800)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Sep 2014 03:41:39 +0000 (13:41 +1000)
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>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_main.c

index b027e332caa5ed5cc62c4c0d7439897f7b8e9273..b792194e0d9ceb6320457c99f270a67680a2d6d8 100644 (file)
@@ -105,7 +105,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");
                }
        }