]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Remove reference to struct drm_device.pdev
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 29 Apr 2021 10:50:57 +0000 (12:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 29 Apr 2021 19:19:10 +0000 (21:19 +0200)
commit81a5f9142c8efd7b2469269e7711510d41de780a
treea8df7b8798e6775b629d41c1e4b85fc758dfa7a5
parent96a3ee66dc09503fa373eb5b85e0805d8937867c
drm/ast: Remove reference to struct drm_device.pdev

Using struct drm_device.pdev is deprecated. Upcast with to_pci_dev()
from struct drm_device.dev to get the PCI device structure.

v9:
* fix remaining pdev references

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Fixes: fc8ebff3f779 ("drm/ast: Fixed CVE for DP501")
Cc: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com>
Cc: kernel test robot <lkp@intel.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210429105101.25667-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_main.c