Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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.uk


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 5472bdee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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)
+0 −1
Original line number Diff line number Diff line
@@ -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);