From patchwork Mon Sep 2 09:06:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2852774 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B829DC0AB5 for ; Mon, 2 Sep 2013 09:06:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64D21204A3 for ; Mon, 2 Sep 2013 09:06:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40A10204A7 for ; Mon, 2 Sep 2013 09:06:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758589Ab3IBJGN (ORCPT ); Mon, 2 Sep 2013 05:06:13 -0400 Received: from mail-bk0-f51.google.com ([209.85.214.51]:47394 "EHLO mail-bk0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758154Ab3IBJGL (ORCPT ); Mon, 2 Sep 2013 05:06:11 -0400 Received: by mail-bk0-f51.google.com with SMTP id mx10so1424184bkb.24 for ; Mon, 02 Sep 2013 02:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Dh+kaKEAYy0Df3NnyNjCecRPDAhV3ME3RRPpFBL3Vhc=; b=r2DY/FPvvAaHwuAB0dJ9K6c7FkzaDCDev7E8ureKz23ZbNM1eBtCXaSGkbI1nEr482 Gh6Nm79bI7tYf+v2gi/MRHDI97nGCEVZIFdD+cnWvngZSYgiSK6lWNHxoOiWcy+KRsvl j9c0dZYBdWkh2TuFOISWM/X//7XX597MdeCXnzP4Aeh7PyTNRDHfuCIYmuyGDFt5fEo3 fjk6feGAumGYNnniByCbopSkyCwDFrZbtpMX1eVq5vZ4HVd4BBburz3Wgczyn+zCffXD gvDdSM8EVx5XhUGtrdZMzn96HwdMo8tbEz978ZL0bDWIiJB3VAGWw6lJf0zCEaTBd6Sk p5Ug== MIME-Version: 1.0 X-Received: by 10.205.64.9 with SMTP id xg9mr590122bkb.30.1378112770305; Mon, 02 Sep 2013 02:06:10 -0700 (PDT) Received: by 10.205.13.74 with HTTP; Mon, 2 Sep 2013 02:06:10 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Sep 2013 17:06:10 +0800 Message-ID: Subject: [PATCH -next v2] [media] davinci: vpif_capture: fix error return code in vpif_probe() From: Wei Yongjun To: prabhakar.csengg@gmail.com Cc: m.chehab@samsung.com, yongjun_wei@trendmicro.com.cn, linux-media@vger.kernel.org, davinci-linux-open-source@linux.davincidsp.com Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fix to return -ENODEV in the subdevice register error handling case instead of 0, as done elsewhere in this function. Introduced by commit 873229e4fdf34196aa5d707957c59ba54c25eaba ([media] media: davinci: vpif: capture: add V4L2-async support) Signed-off-by: Wei Yongjun Acked-by: Lad, Prabhakar --- v1 -> v2: fix mistake using -ENOMEM --- drivers/media/platform/davinci/vpif_capture.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index 7fbde6d..e4b6a26 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -2160,6 +2160,7 @@ static __init int vpif_probe(struct platform_device *pdev) if (!vpif_obj.sd[i]) { vpif_err("Error registering v4l2 subdevice\n"); + err = -ENODEV; goto probe_subdev_out; } v4l2_info(&vpif_obj.v4l2_dev,