1. 27 May, 2013 7 commits
    • Wei Yongjun's avatar
      [media] sta2x11_vip: fix error return code in sta2x11_vip_init_one() · d017650b
      Wei Yongjun authored
      The orig code will release all the resources if v4l2_device_register()
      failed and return 0. But what we need in this case is to return an
      negative error code to let the caller known we are failed.
      So the patch save the return value of v4l2_device_register() to 'ret'
      and return it when error.
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      d017650b
    • Wei Yongjun's avatar
      [media] blackfin: fix error return code in bcap_probe() · d9fdbeff
      Wei Yongjun authored
      Fix to return a negative error code from the error handling
      case instead of 0, as done elsewhere in this function.
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Acked-by: default avatarScott Jiang <scott.jiang.linux@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      d9fdbeff
    • Wei Yongjun's avatar
      [media] ad9389b: fix error return code in ad9389b_probe() · 6ec735df
      Wei Yongjun authored
      Fix to return a negative error code from the error handling
      case instead of 0, as done elsewhere in this function.
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      6ec735df
    • Wei Yongjun's avatar
      [media] vpif_capture: fix error return code in vpif_probe() · 4fa94e22
      Wei Yongjun authored
      Fix to return -ENODEV in the subdevice register error handling
      case instead of 0, as done elsewhere in this function.
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      4fa94e22
    • Wei Yongjun's avatar
      [media] vpif_display: fix error return code in vpif_probe() · b2d2cf10
      Wei Yongjun authored
      Fix to return -ENODEV in the subdevice register error handling
      case instead of 0, as done elsewhere in this function.
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      b2d2cf10
    • Wei Yongjun's avatar
      [media] v4l: vb2: fix error return code in __vb2_init_fileio() · 5dd6946c
      Wei Yongjun authored
      Fix to return -EINVAL in the get kernel address error handling
      case instead of 0, as done elsewhere in this function.
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Reviewed-by: default avatarSakari Ailus <sakari.ailus@iki.fi>
      Acked-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      5dd6946c
    • Randy Dunlap's avatar
      [media] media: fix hdpvr kconfig/build errors · 99119595
      Randy Dunlap authored
      Fix hdpvr build errors when CONFIG_I2C=m and VIDEO_V4L2=m and
      VIDEO_HDPVR=y.
      drivers/built-in.o: In function `hdpvr_disconnect':
      hdpvr-core.c:(.text+0xef542): undefined reference to `v4l2_device_disconnect'
      hdpvr-core.c:(.text+0xef57e): undefined reference to `i2c_del_adapter'
      hdpvr-core.c:(.text+0xef58a): undefined reference to `video_unregister_device'
      drivers/built-in.o: In function `hdpvr_delete':
      (.text+0xef5b9): undefined reference to `video_device_release'
      drivers/built-in.o: In function `hdpvr_probe':
      hdpvr-core.c:(.text+0xef63a): undefined reference to `v4l2_device_register'
      hdpvr-core.c:(.text+0xefd97): undefined reference to `i2c_del_adapter'
      drivers/built-in.o: In function `hdpvr_s_ctrl':
      hdpvr-video.c:(.text+0xf03c0): undefined reference to `v4l2_ctrl_activate'
      drivers/built-in.o: In function `hdpvr_device_release':
      hdpvr-video.c:(.text+0xf0470): undefined reference to `v4l2_device_unregister'
      hdpvr-video.c:(.text+0xf0479): undefined reference to `v4l2_ctrl_handler_free'
      hdpvr-video.c:(.text+0xf048f): undefined reference to `i2c_del_adapter'
      drivers/built-in.o: In function `hdpvr_open':
      hdpvr-video.c:(.text+0xf0570): undefined reference to `video_devdata'
      hdpvr-video.c:(.text+0xf057b): undefined reference to `v4l2_fh_init'
      hdpvr-video.c:(.text+0xf0583): undefined reference to `v4l2_fh_add'
      drivers/built-in.o: In function `video_drvdata':
      hdpvr-video.c:(.text+0xf08a0): undefined reference to `video_devdata'
      drivers/built-in.o: In function `vidioc_s_dv_timings':
      hdpvr-video.c:(.text+0xf0d34): undefined reference to `v4l_match_dv_timings'
      drivers/built-in.o: In function `hdpvr_poll':
      hdpvr-video.c:(.text+0xf1455): undefined reference to `v4l2_ctrl_poll'
      drivers/built-in.o: In function `hdpvr_release':
      hdpvr-video.c:(.text+0xf18f6): undefined reference to `v4l2_fh_release'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1be3): undefined reference to `v4l2_ctrl_handler_init_class'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1c19): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1c42): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1c6b): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1cac): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1cd5): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o:(.text+0xf1cfe): more undefined references to `v4l2_ctrl_new_std' follow
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1d75): undefined reference to `v4l2_ctrl_new_std_menu'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1d9e): undefined reference to `v4l2_ctrl_new_std_menu'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1dc3): undefined reference to `v4l2_ctrl_new_std_menu'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1de5): undefined reference to `v4l2_ctrl_new_std_menu'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1e18): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1e4b): undefined reference to `v4l2_ctrl_new_std'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1e90): undefined reference to `v4l2_ctrl_cluster'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1e98): undefined reference to `v4l2_ctrl_handler_setup'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1ec1): undefined reference to `video_device_alloc'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1f85): undefined reference to `__video_register_device'
      drivers/built-in.o: In function `hdpvr_register_videodev':
      (.text+0xf1fac): undefined reference to `v4l2_ctrl_handler_free'
      drivers/built-in.o: In function `hdpvr_register_ir_tx_i2c':
      (.text+0xf238f): undefined reference to `i2c_new_device'
      drivers/built-in.o: In function `hdpvr_register_ir_rx_i2c':
      (.text+0xf2434): undefined reference to `i2c_new_device'
      drivers/built-in.o: In function `hdpvr_register_i2c_adapter':
      (.text+0xf2514): undefined reference to `i2c_add_adapter'
      drivers/built-in.o:(.rodata+0x1b368): undefined reference to `video_ioctl2'
      drivers/built-in.o:(.rodata+0x1b690): undefined reference to `v4l2_ctrl_log_status'
      drivers/built-in.o:(.rodata+0x1b6f8): undefined reference to `v4l2_ctrl_subscribe_event'
      drivers/built-in.o:(.rodata+0x1b700): undefined reference to `v4l2_event_unsubscribe'
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      99119595
  2. 21 May, 2013 33 commits