mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/qxl: Remove references to struct drm_device.pdev
Using struct drm_device.pdev is deprecated. Convert qxl to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201201103542.2182-15-tzimmermann@suse.de
This commit is contained in:
@@ -370,13 +370,14 @@ static int qxl_clientcap_ioctl(struct drm_device *dev, void *data,
|
||||
struct drm_file *file_priv)
|
||||
{
|
||||
struct qxl_device *qdev = to_qxl(dev);
|
||||
struct pci_dev *pdev = to_pci_dev(dev->dev);
|
||||
struct drm_qxl_clientcap *param = data;
|
||||
int byte, idx;
|
||||
|
||||
byte = param->index / 8;
|
||||
idx = param->index % 8;
|
||||
|
||||
if (dev->pdev->revision < 4)
|
||||
if (pdev->revision < 4)
|
||||
return -ENOSYS;
|
||||
|
||||
if (byte >= 58)
|
||||
|
||||
Reference in New Issue
Block a user