[media] exynos4-is: Fix fimc_is_parse_sensor_config() nodes handling
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 24 Mar 2016 00:41:40 +0000 (21:41 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 16:31:09 +0000 (13:31 -0300)
commit4f355cb5676039b98232bb86d4ed1542eaa9e0be
treee1e175e3a34169798ba5a87d3583dc3c60d8318b
parent3b2aa383b3bc4e16ee15a145f8d9575a73779337
[media] exynos4-is: Fix fimc_is_parse_sensor_config() nodes handling

The same struct device_node * is used for looking up the I2C sensor, OF
graph endpoint and port. So the reference count is incremented but not
decremented for the endpoint and port nodes.

Fix this by having separate pointers for each node looked up.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Nicolas Dufresne <nicoas.dufresne@collabora.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos4-is/fimc-is.c