[media] v4l: Don't warn during link validation when encountering a V4L2 devnode
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 20 Oct 2012 20:47:22 +0000 (17:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Nov 2012 14:09:49 +0000 (12:09 -0200)
commit864a121274c70fe9a1767db28bd86f5e5d0016a1
tree51485fe6eca7676a8d4a9147456c093f0cf74516
parentb6f50b49b9712f49c377e9e3587906e27bea39d0
[media] v4l: Don't warn during link validation when encountering a V4L2 devnode

v4l2_subdev_link_validate_get_format() retrieves the remote pad format
depending on the entity type and prints a warning if the entity type is
not supported. The type check doesn't take the subtype into account, and
thus always prints a warning for device node types, even when supported.
Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-subdev.c