1
0
Fork 0

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: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170127010548.27970-3-krisman@collabora.co.uk
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hifive-unleashed-5.1
Gabriel Krisman Bertazi 2017-01-26 23:05:47 -02:00 committed by Gerd Hoffmann
parent 5472bdee3f
commit d74d74aeaf
3 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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);