]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 29 Aug 2008 20:31:35 +0000 (17:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:56 +0000 (09:36 -0200)
commit3600f5ea9b1ad3ef902e42eb0d4327fbb2c2d751
tree2ba6079ba59017d03f53e0ba068e099008ef21d5
parent39c8a046f538e230173e0aa2de358dab2f41c961
V4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev

Replace the old register_chrdev with the more flexible register_chrdev_region.

Ensure that the release() is called when the very last chardev usage was
released, and not when the sysfs devices were removed. This should simplify
hotpluggable drivers considerably.

Tested-by: Mike Isely <isely@isely.net>
Tested-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: David Ellingsworth <david@identd.dyndns.org>
Reviewed-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c
include/media/v4l2-dev.h