From patchwork Mon May 13 05:57:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2556421 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0B858DF2E5 for ; Mon, 13 May 2013 05:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753398Ab3EMF5j (ORCPT ); Mon, 13 May 2013 01:57:39 -0400 Received: from mail-bk0-f49.google.com ([209.85.214.49]:50118 "EHLO mail-bk0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904Ab3EMF5i (ORCPT ); Mon, 13 May 2013 01:57:38 -0400 Received: by mail-bk0-f49.google.com with SMTP id na10so14209bkb.36 for ; Sun, 12 May 2013 22:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=CE2OHZZrypDsJag+hiLeJRHyJZpe/e7Qyt8vh8TpJ+k=; b=xuc3CGxi+ukwatM1pO+n6yBpe5rzFJNLcfsaSoNlU/jy/kR0n/YJN2EGaLXk38h5/p ViwJpfuMirKxmU2myYKluwAz7c7QEkN8Vm9QsL0zTCrfwcePqcWjqM7Q6UvBA/gBodU/ pIOW8pkJj3ZYz74NWLAQDiUfDpGZ6dL2f9E8KwrtDmyLyJPY4zrj0Ys2ZY7AAFiDz1Ik ZuSgK1DmBJcX2QWBDK6Omw/USSXEkliH/9COFElPYqx/KCSXNhFD85pAE2nEhgZ0P+Jc GT+mTxPE7J+X/j+WkdINnegq2ZAsMowYXtwR5iae7xX5GHeYnyfLj+mKaEMSXJgURuCY rB5g== MIME-Version: 1.0 X-Received: by 10.204.173.9 with SMTP id n9mr5111229bkz.47.1368424657415; Sun, 12 May 2013 22:57:37 -0700 (PDT) Received: by 10.204.199.129 with HTTP; Sun, 12 May 2013 22:57:37 -0700 (PDT) Date: Mon, 13 May 2013 13:57:37 +0800 Message-ID: Subject: [PATCH] [media] vpif_capture: fix error return code in vpif_probe() From: Wei Yongjun To: prabhakar.csengg@gmail.com, mchehab@redhat.com Cc: 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 From: Wei Yongjun Fix to return -ENODEV in the subdevice register error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Acked-by: Lad, Prabhakar --- 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 5f98df1..ef0fc94 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -2170,6 +2170,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, "registered sub device %s\n",