From patchwork Wed Jun 22 15:44:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 906232 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5MFieMk000613 for ; Wed, 22 Jun 2011 15:44:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932379Ab1FVPoi (ORCPT ); Wed, 22 Jun 2011 11:44:38 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:13014 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932322Ab1FVPoh (ORCPT ); Wed, 22 Jun 2011 11:44:37 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from eu_spt1 ([210.118.77.14]) by mailout4.w1.samsung.com (Sun Java(tm) System Messaging Server 6.3-8.04 (built Jul 29 2009; 32bit)) with ESMTP id <0LN7005BR7QCYN30@mailout4.w1.samsung.com> for linux-media@vger.kernel.org; Wed, 22 Jun 2011 16:44:36 +0100 (BST) Received: from linux.samsung.com ([106.116.38.10]) by spt1.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LN700JI17QBWR@spt1.w1.samsung.com> for linux-media@vger.kernel.org; Wed, 22 Jun 2011 16:44:35 +0100 (BST) Received: from mcdsrvbld02.digital.local (unknown [106.116.37.23]) by linux.samsung.com (Postfix) with ESMTP id 0F73527004D; Wed, 22 Jun 2011 17:44:51 +0200 (CEST) Date: Wed, 22 Jun 2011 17:44:28 +0200 From: Sylwester Nawrocki Subject: [PATCH 1/3] noon010pc30: Do not ignore errors in initial controls setup In-reply-to: <1308757470-24421-1-git-send-email-s.nawrocki@samsung.com> To: linux-media@vger.kernel.org Cc: m.szyprowski@samsung.com, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, s.nawrocki@samsung.com, sw0312.kim@samsung.com, riverful.kim@samsung.com Message-id: <1308757470-24421-2-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.2.5 References: <1308757470-24421-1-git-send-email-s.nawrocki@samsung.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 22 Jun 2011 15:44:40 +0000 (UTC) Propagate return value from v4l2_ctrl_handler_setup as any errors from it are now silently ignored. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/video/noon010pc30.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/noon010pc30.c b/drivers/media/video/noon010pc30.c index 35f722a..50ca097 100644 --- a/drivers/media/video/noon010pc30.c +++ b/drivers/media/video/noon010pc30.c @@ -554,7 +554,8 @@ static int noon010_base_config(struct v4l2_subdev *sd) ret = noon010_power_ctrl(sd, false, false); /* sync the handler and the registers state */ - v4l2_ctrl_handler_setup(&to_noon010(sd)->hdl); + if (!ret) + ret = v4l2_ctrl_handler_setup(&info->hdl); return ret; }