From: Hans Verkuil <hans.verk...@cisco.com>

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.verk...@cisco.com>
---
 drivers/media/media-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
-- 
2.13.2

Reply via email to