diff options
author | Egbert Eich <eich@suse.de> | 2017-07-18 16:47:40 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-02 12:13:16 +1000 |
commit | 12f8030e05c6c24b89b38838fe22257a9b5331f9 (patch) | |
tree | 28049cf39662718cc26f299f824526aab8667aa4 /drivers/gpu/drm/ast/ast_main.c | |
parent | ab209c32f5df862d7255640ad61d1d293299f2d7 (diff) | |
download | linux-12f8030e05c6c24b89b38838fe22257a9b5331f9.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r-- | drivers/gpu/drm/ast/ast_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index 50a8512ea646..9a44cdec3bca 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c @@ -576,6 +576,7 @@ void ast_driver_unload(struct drm_device *dev) { struct ast_private *ast = dev->dev_private; + ast_release_firmware(dev); kfree(ast->dp501_fw_addr); ast_mode_fini(dev); ast_fbdev_fini(dev); |