aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/media-device.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-07-21 06:48:33 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-08 06:00:07 -0400
commit4c7089ee66026f38275d43e26d9da6e2945af6f9 (patch)
tree9e8473777a62a5b26ffc737e2cb9bae194079b9b /drivers/media/media-device.c
parentMerge tag 'v4.13-rc4' into patchwork (diff)
downloadlinux-dev-4c7089ee66026f38275d43e26d9da6e2945af6f9.tar.xz
linux-dev-4c7089ee66026f38275d43e26d9da6e2945af6f9.zip
media: media-device: set driver_version directly
Don't use driver_version from struct media_device, just return LINUX_VERSION_CODE as the other media subsystems do. The driver_version field in struct media_device will be removed in the following patches. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/media-device.c')
-rw-r--r--drivers/media/media-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index fce91b543c14..7ff8e2d5bb07 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@ -71,7 +71,7 @@ static int media_device_get_info(struct media_device *dev,
info->media_version = MEDIA_API_VERSION;
info->hw_revision = dev->hw_revision;
- info->driver_version = dev->driver_version;
+ info->driver_version = LINUX_VERSION_CODE;
return 0;
}