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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 01:57:14 +0000 (09:57 +0800)
commit8b787652386e26c7974092f11bd477126b0d53ce
tree7f0089d9d5af9a0a05c151aaa494b4cf040c17d8
parent0d80ac62b609bce00b78a656b7cdde2d8f587345
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ast/ast_post.c