Commit d74d74ae authored by Gabriel Krisman Bertazi's avatar Gabriel Krisman Bertazi Committed by Gerd Hoffmann

drm: qxl: Drop duplicated pci_device pointer attribute

qxl_device duplicates the pointer to struct pci_dev, which is not
needed since we already have it in the drm_device structure.  Clean it
up.
Signed-off-by: default avatarGabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170127010548.27970-3-krisman@collabora.co.ukSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 5472bdee
......@@ -243,7 +243,6 @@ struct qxl_device;
struct qxl_device {
struct drm_device *ddev;
struct pci_dev *pdev;
unsigned long flags;
resource_size_t vram_base, vram_size;
......
......@@ -375,7 +375,7 @@ static int qxl_clientcap_ioctl(struct drm_device *dev, void *data,
byte = param->index / 8;
idx = param->index % 8;
if (qdev->pdev->revision < 4)
if (dev->pdev->revision < 4)
return -ENOSYS;
if (byte >= 58)
......
......@@ -123,7 +123,6 @@ int qxl_device_init(struct qxl_device *qdev,
int r, sb;
qdev->ddev = ddev;
qdev->pdev = pdev;
qdev->flags = flags;
mutex_init(&qdev->gem.mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment