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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:17:30 +0000 (13:17 +0000)
commit76aeb6b9c8291a2468c69b0e3961e5eb3b6eca33
treedba293e88b3ccb0e5d16e34a6bc694ee0f6fcfd4
parentbb6392fbe4d3ba274c475e4b3b1303c83a60ff26
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