drm/ast: Fix test for VGA enabled
authorY.C. Chen <yc_chen@aspeedtech.com>
Wed, 22 Feb 2017 04:10:50 +0000 (15:10 +1100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:27 +0000 (14:04 +0200)
commit6ac27411ce2cc9cb8e48df29d92992741414e1e4
tree0197df62e68c5a5530f9535962c3d51baedde570
parent6958f50ab442e17848b8949e8bc468d09b823c5a
drm/ast: Fix test for VGA enabled

commit 905f21a49d388de3e99438235f3301cabf0c0ef4 upstream.

The test to see if VGA was already enabled is doing an unnecessary
second test from a register that may or may not have been initialized
to a valid value. Remove it.

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/gpu/drm/ast/ast_post.c