diff mbox

[media_build] Fixup api_version.patch after version field removals

Message ID 20170808172121.10932-1-d.scheller.oss@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Scheller Aug. 8, 2017, 5:21 p.m. UTC
From: Daniel Scheller <d.scheller@gmx.net>

Fixes prepatching wrt

  commit 2bd8682375f3 ("media: media-device: remove driver_version"

and

  commit 71269bf607bc ("media: uvc: don't set driver_version")

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
---
 backports/api_version.patch | 35 -----------------------------------
 1 file changed, 35 deletions(-)
diff mbox

Patch

diff --git a/backports/api_version.patch b/backports/api_version.patch
index 892bcbb..7bf3723 100644
--- a/backports/api_version.patch
+++ b/backports/api_version.patch
@@ -11,41 +11,6 @@  index 0860fb458757..60fd48214142 100644
  	if (copy_to_user(parg, &caps, sizeof(caps)))
  		return -EFAULT;
  	return 0;
-diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
-index 760e3e424e23..b1887870172d 100644
---- a/drivers/media/media-device.c
-+++ b/drivers/media/media-device.c
-@@ -834,7 +834,7 @@ void media_device_pci_init(struct media_device *mdev,
- 	mdev->hw_revision = (pci_dev->subsystem_vendor << 16)
- 			    | pci_dev->subsystem_device;
- 
--	mdev->driver_version = LINUX_VERSION_CODE;
-+	mdev->driver_version = V4L2_VERSION;
- 
- 	media_device_init(mdev);
- }
-@@ -863,7 +863,7 @@ void __media_device_usb_init(struct media_device *mdev,
- 		strlcpy(mdev->serial, udev->serial, sizeof(mdev->serial));
- 	usb_make_path(udev, mdev->bus_info, sizeof(mdev->bus_info));
- 	mdev->hw_revision = le16_to_cpu(udev->descriptor.bcdDevice);
--	mdev->driver_version = LINUX_VERSION_CODE;
-+	mdev->driver_version = V4L2_VERSION;
- 
- 	media_device_init(mdev);
- }
-diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
-index 70842c5af05b..2b719f80de15 100644
---- a/drivers/media/usb/uvc/uvc_driver.c
-+++ b/drivers/media/usb/uvc/uvc_driver.c
-@@ -2096,7 +2096,7 @@ static int uvc_probe(struct usb_interface *intf,
- 			sizeof(dev->mdev.serial));
- 	strcpy(dev->mdev.bus_info, udev->devpath);
- 	dev->mdev.hw_revision = le16_to_cpu(udev->descriptor.bcdDevice);
--	dev->mdev.driver_version = LINUX_VERSION_CODE;
-+	dev->mdev.driver_version = V4L2_VERSION;
- 	media_device_init(&dev->mdev);
- 
- 	dev->vdev.mdev = &dev->mdev;
 diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
 index 4f27cfa134a1..e0fb14c851d5 100644
 --- a/drivers/media/v4l2-core/v4l2-ioctl.c