From: Frank Schaefer Date: Fri, 25 Jul 2014 17:48:57 +0000 (-0300) Subject: [media] em28xx-v4l: simplify em28xx_v4l2_open() by using v4l2_fh_open() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c0f90e14caf97896cd347b3b9fec8cba6b56b14;p=pandora-kernel.git [media] em28xx-v4l: simplify em28xx_v4l2_open() by using v4l2_fh_open() Instead of calling ... struct v4l2_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL); filp->private_data = fh; v4l2_fh_init(fh, vdev); v4l2_fh_add(fh); ... simply use function v4l2_fh_open() which does all of these calls for us. Signed-off-by: Frank Schäfer Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed