media: s3c-camif: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 10 Jun 2018 15:42:01 +0000 (11:42 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 13:22:30 +0000 (09:22 -0400)
commit30ed2b83343bd1e07884ca7355dac70d25ffc158
tree2ad2f3b25edfb6cbd1487a85ce7e08628e3a6c5f
parent2ec7debd44b49927a6e2861521994cc075a389ed
media: s3c-camif: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power

When the subdevice doesn't provide s_power core ops callback, the
v4l2_subdev_call for s_power returns -ENOIOCTLCMD.  If the subdevice
doesn't have the special handling for its power saving mode, the s_power
isn't required.  So -ENOIOCTLCMD from the v4l2_subdev_call should be
ignored.

Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/s3c-camif/camif-capture.c