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>
This commit is contained in:
parent
5472bdee3f
commit
d74d74aeaf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue