aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-07-28 16:13:27 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-19 08:56:43 -0200
commit62a409034c62ae2b377fe631957e80262020ef17 (patch)
tree50d49f5b20ee9cedb4465062937f62d388860298 /drivers/media
parent[media] v4l: vsp1: Make rwpf operations independent of video device (diff)
downloadlinux-dev-62a409034c62ae2b377fe631957e80262020ef17.tar.xz
linux-dev-62a409034c62ae2b377fe631957e80262020ef17.zip
[media] v4l: vsp1: Support VSP1 instances without any UDS
Not all VSP1 instances include a UDS. Make the renesas,#uds DT property optional and accept a number of UDS equal to 0 as valid. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/vsp1/vsp1_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_drv.c b/drivers/media/platform/vsp1/vsp1_drv.c
index 8a7b11153073..773c9f0b0971 100644
--- a/drivers/media/platform/vsp1/vsp1_drv.c
+++ b/drivers/media/platform/vsp1/vsp1_drv.c
@@ -511,7 +511,7 @@ static int vsp1_parse_dt(struct vsp1_device *vsp1)
return -EINVAL;
}
- if (pdata->uds_count <= 0 || pdata->uds_count > VSP1_MAX_UDS) {
+ if (pdata->uds_count > VSP1_MAX_UDS) {
dev_err(vsp1->dev, "invalid number of UDS (%u)\n",
pdata->uds_count);
return -EINVAL;