media: v4l: fwnode: Fix lane-polarities property parsing
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 14 Aug 2017 10:15:21 +0000 (06:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 17:45:35 +0000 (13:45 -0400)
commitb24f021579c5384ea9ba22decec84e757d5fbd09
treeb67008e92ec83399d717ad6c5d972084eb675f72
parentf758eb2363ecf91adf17dbd1864691819dd3c060
media: v4l: fwnode: Fix lane-polarities property parsing

fwnode_property_read_u32_array() only returns the number of array elements
if the array argument is NULL. The assumption that it always did so lead to
lane-polarities properties never being read.

Fixes: 4ee236219f6d ("media: v4l2-fwnode: suppress a warning at OF parsing logic")

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-fwnode.c