From: William Towle Date: Mon, 26 Jan 2015 17:08:40 +0000 (-0300) Subject: [media] rcar_vin: move buffer management to .stop_streaming handler X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~131^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e99f0115e56ce4c4cda269cd21b25f7e14fa548f;p=pandora-kernel.git [media] rcar_vin: move buffer management to .stop_streaming handler This commit moves the "buffer in use" logic from the .buf_cleanup handler into .stop_streaming, based on advice that this is its proper logical home. By ensuring the list of pointers in priv->queue_buf[] is managed as soon as possible, we avoid warnings concerning buffers in ACTIVE state when the system cleans up after streaming stops. This fixes a problem with modification of buffers after their content has been cleared for passing to userspace. After the refactoring, the buf_init and buf_cleanup functions were found to contain only initialisation/release steps as are carried out elsewhere if omitted; these functions and references were removed. Signed-off-by: William Towle Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed