rcar_vin: copy flags from pdata
authorBen Dooks <ben.dooks@codethink.co.uk>
Mon, 14 Apr 2014 10:36:40 +0000 (07:36 -0300)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:37 +0000 (11:15 +0100)
commit159e7d9007bac684a282309f353baa1f8c292df1
treee604e3a0098e5e6602d7f63a48b2b74c9dbe2d83
parent2cbf7359825565984f976b43d9b5bc78569c8b6a
rcar_vin: copy flags from pdata

The platform data is a single word, so simply copy
it into the device's private data structure than
keeping a copy of the pointer.

This will make changing to device-tree binding
easier as it is one allocation instead of two.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
(cherry picked from commit 25dfa02ce21981ef08d375be987862f96676d8ab)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/media/platform/soc_camera/rcar_vin.c