drm/ast: Actually load DP501 firmware when required
authorEgbert Eich <eich@suse.de>
Tue, 18 Jul 2017 14:47:40 +0000 (16:47 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Aug 2017 02:13:16 +0000 (12:13 +1000)
commit12f8030e05c6c24b89b38838fe22257a9b5331f9
tree28049cf39662718cc26f299f824526aab8667aa4
parentab209c32f5df862d7255640ad61d1d293299f2d7
drm/ast: Actually load DP501 firmware when required

The ast driver has a code to load the DP501 firmware, but it's never
used.  This patch implements its actual usage by requesting the
firmware on demand, and release the firmware at exit as well.

Also the path contains a few cleanups and makes relevant functions
static.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_dp501.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c