Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113865
b: refs/heads/master
c: d6e7497
h: refs/heads/master
i:
  113863: 948e804
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent ec2926a commit cbe046c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa5e90af7d78d1711f8f4275ce3638817c0023dc
refs/heads/master: d6e7497eaf9889d39a070f60309a9bcea1fd29f6
16 changes: 2 additions & 14 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ static void video_release(struct device *cd)
{
struct video_device *vfd = container_of(cd, struct video_device, dev);

#if 1
/* needed until all drivers are fixed */
if (!vfd->release)
return;
#endif
vfd->release(vfd);
}

Expand Down Expand Up @@ -233,8 +228,8 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
int ret;
char *name_base;

if (vfd == NULL)
return -EINVAL;
/* the release callback MUST be present */
BUG_ON(!vfd->release);

if (vfd == NULL)
return -EINVAL;
Expand Down Expand Up @@ -312,13 +307,6 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
goto fail_minor;
}

#if 1
/* needed until all drivers are fixed */
if (!vfd->release)
printk(KERN_WARNING "videodev: \"%s\" has no release callback. "
"Please fix your driver for proper sysfs support, see "
"http://lwn.net/Articles/36850/\n", vfd->name);
#endif
return 0;

fail_minor:
Expand Down

0 comments on commit cbe046c

Please sign in to comment.