diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2020-06-17 11:03:38 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2020-06-22 14:39:23 +0300 |
commit | 5534bc8f184020ace49b1dfdcdc07ad6555968ac (patch) | |
tree | c51e9f615c75900b75a7ac18f5a25bbe6f5bf4e7 | |
parent | 05f13f5b5996d20a9819e0c6fd0cda4956c8aff9 (diff) | |
download | linux-5534bc8f184020ace49b1dfdcdc07ad6555968ac.tar.xz |
drm/ast: Remove test for device from ast_pm_freeze()
The driver cannot suspend before it has loaded completely. So the test
for device pointers is not required. Remove it.
v3:
* s/them/it/ in commit message
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200617080340.29584-3-tzimmermann@suse.de
-rw-r--r-- | drivers/gpu/drm/ast/ast_drv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index f7a14e4e1df0..0b58f7aee6b0 100644 --- a/drivers/gpu/drm/ast/ast_drv.c +++ b/drivers/gpu/drm/ast/ast_drv.c @@ -188,9 +188,6 @@ static int ast_pm_freeze(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); struct drm_device *ddev = pci_get_drvdata(pdev); - - if (!ddev || !ddev->dev_private) - return -ENODEV; return ast_drm_freeze(ddev); } |