On Tue Jun 30 10:28:50 2026 +0000, Ricardo Ribalda wrote:
> The active field in struct uvc_streaming is not used anymore, drop it.
> 
> Reported-by: Hans de Goede <[email protected]>
> Closes: 
> https://lore.kernel.org/linux-media/[email protected]/T/#m3078f0d5fd71435b5cfacaa5c99f23a446db581f
> Signed-off-by: Ricardo Ribalda <[email protected]>
> Link: 
> https://patch.msgid.link/[email protected]
> Reviewed-by: Hans de Goede <[email protected]>
> Reviewed-by: Laurent Pinchart <[email protected]>
> Signed-off-by: Hans de Goede <[email protected]>
> Signed-off-by: Laurent Pinchart <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/usb/uvc/uvc_video.c | 2 --
 drivers/media/usb/uvc/uvcvideo.h  | 1 -
 2 files changed, 3 deletions(-)

---

diff --git a/drivers/media/usb/uvc/uvc_video.c 
b/drivers/media/usb/uvc/uvc_video.c
index fc3536a4399f..0167f0f8e846 100644
--- a/drivers/media/usb/uvc/uvc_video.c
+++ b/drivers/media/usb/uvc/uvc_video.c
@@ -2229,8 +2229,6 @@ int uvc_video_init(struct uvc_streaming *stream)
                return -EINVAL;
        }
 
-       atomic_set(&stream->active, 0);
-
        /*
         * Alternate setting 0 should be the default, yet the XBox Live Vision
         * Cam (and possibly other devices) crash or otherwise misbehave if
diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index b6bcee4a222f..021fd9af78b5 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -456,7 +456,6 @@ struct uvc_streaming {
        struct list_head list;
        struct uvc_device *dev;
        struct uvc_video_chain *chain;
-       atomic_t active;
 
        struct usb_interface *intf;
        int intfnum;
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to