From: Hans Verkuil Date: Fri, 29 Aug 2008 20:31:35 +0000 (-0300) Subject: V4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev X-Git-Tag: v2.6.28-rc1~601^2~226 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f8ecfab7a1d256707502207c56dd4bf3e3a026e;p=pandora-kernel.git 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 Tested-by: Laurent Pinchart Signed-off-by: Hans Verkuil Acked-by: David Ellingsworth Reviewed-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed