]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Feb 2017 03:24:53 +0000 (13:24 +1000)
commitae966ab5abb37d02d2308380840c81b7fb0fe3f2
tree39a1234ca0b1260f2319cfdfac272b65bb2ae40e
parente7a2f0d89645bcae2749831dfc049361e84d75b7
drm/ast: Fix test for VGA enabled

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>
Cc: <stable@vger.kernel.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>
drivers/gpu/drm/ast/ast_post.c