Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 363212 Details for
Bug 488128
media-video/stk11xx-2.1.0_p104 with kernel 3.11* - .../work/stk11xx-2.1.0_p104/stk11xx-v4l.c:1481:11: error: ‘struct video_device’ has no member named ‘parent’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This patch solves the problem
stk11xx_kernel11.patch (text/plain), 1.82 KB, created by
Michael Tulupov
on 2013-11-13 22:46:37 UTC
(
hide
)
Description:
This patch solves the problem
Filename:
MIME Type:
Creator:
Michael Tulupov
Created:
2013-11-13 22:46:37 UTC
Size:
1.82 KB
patch
obsolete
>diff -urp syntekdriver-code-107-trunk-orig/driver/stk11xx.h syntekdriver-code-107-trunk//driver/stk11xx.h >--- syntekdriver-code-107-trunk-orig/driver/stk11xx.h 2012-03-10 10:03:12.000000000 +0100 >+++ syntekdriver-code-107-trunk//driver/stk11xx.h 2013-08-05 22:50:00.000000000 +0200 >@@ -33,6 +33,7 @@ > > #ifndef STK11XX_H > #define STK11XX_H >+#include <media/v4l2-device.h> > > #define DRIVER_NAME "stk11xx" /**< Name of this driver */ > #define DRIVER_VERSION "v3.0.0" /**< Version of this driver */ >@@ -316,6 +317,7 @@ struct stk11xx_video { > * @struct usb_stk11xx > */ > struct usb_stk11xx { >+ struct v4l2_device v4l2_dev; > struct video_device *vdev; /**< Pointer on a V4L2 video device */ > struct usb_device *udev; /**< Pointer on a USB device */ > struct usb_interface *interface; /**< Pointer on a USB interface */ >diff -urp syntekdriver-code-107-trunk-orig/driver/stk11xx-v4l.c syntekdriver-code-107-trunk//driver/stk11xx-v4l.c >--- syntekdriver-code-107-trunk-orig/driver/stk11xx-v4l.c 2012-03-10 09:54:57.000000000 +0100 >+++ syntekdriver-code-107-trunk//driver/stk11xx-v4l.c 2013-08-05 22:51:12.000000000 +0200 >@@ -1498,9 +1498,17 @@ int v4l_stk11xx_register_video_device(st > { > int err; > >+ err = v4l2_device_register(&dev->interface->dev, &dev->v4l2_dev); >+ if (err < 0) { >+ STK_ERROR("couldn't register v4l2_device\n"); >+ kfree(dev); >+ return err; >+ } >+ > strcpy(dev->vdev->name, DRIVER_DESC); > >- dev->vdev->parent = &dev->interface->dev; >+// dev->vdev->parent = &dev->interface->dev; >+ dev->vdev->v4l2_dev = &dev->v4l2_dev; > dev->vdev->fops = &v4l_stk11xx_fops; > dev->vdev->release = video_device_release; > dev->vdev->minor = -1; >@@ -1533,6 +1541,7 @@ int v4l_stk11xx_unregister_video_device( > > video_set_drvdata(dev->vdev, NULL); > video_unregister_device(dev->vdev); >+ v4l2_device_unregister(&dev->v4l2_dev); > > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 488128
:
360950
|
360952
|
360954
|
360956
|
360958
| 363212