From patchwork Thu Jul 17 19:38:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Alves X-Patchwork-Id: 4578451 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1D8739F26C for ; Thu, 17 Jul 2014 19:38:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D5DF2017D for ; Thu, 17 Jul 2014 19:38:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 863B9201BA for ; Thu, 17 Jul 2014 19:38:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753323AbaGQTiO (ORCPT ); Thu, 17 Jul 2014 15:38:14 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:43383 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752570AbaGQTiO (ORCPT ); Thu, 17 Jul 2014 15:38:14 -0400 Received: by mail-wi0-f179.google.com with SMTP id f8so3393003wiw.12 for ; Thu, 17 Jul 2014 12:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=jUVwufQtgOCJP3XvMtFpcUDIAfuoE3JyPaCooW8ZIe4=; b=uGI7zVcmqF7xGMl2oHHVtgrTpZWB1Tyiq2jyHOcEKLZHFJYKVgnagBJSJCoTp+B48p PWU+H18Z4KubE38fHNkWqBGog6z8OhoCWBiQFb8RaJkukg/6BCjtGZh6ANrljvywEv0g H0YEgbJjNS6NP6sfa51YT5Je3EHhqnevWYYMLjyNAMADiPb+41Eg1SA43SeQK2C2lynf wZ1S96CTS81cIt7ByVby7U10p4jz7bQ34HzmnrtQDIhaThAHGPqpd8fD7UFM8k1wFB/f kMWZpaW3OveTcMXkPF3EWbG7QBzDUeR33yKI2q1qwGpgfG+xG6B83Of8fVyJMgVPyfg1 BmKw== X-Received: by 10.180.75.75 with SMTP id a11mr24862044wiw.3.1405625892891; Thu, 17 Jul 2014 12:38:12 -0700 (PDT) Received: from localhost.localdomain (a89-152-208-230.cpe.netcabo.pt. [89.152.208.230]) by mx.google.com with ESMTPSA id fs17sm8350328wjc.6.2014.07.17.12.38.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Jul 2014 12:38:12 -0700 (PDT) From: Luis Alves To: linux-media@vger.kernel.org Cc: crope@iki.fi, Luis Alves Subject: [PATCH 1/1] si2168: Fix i2c_add_mux_adapter return value in probe function. In case it failed the return value was always 0. Date: Thu, 17 Jul 2014 20:38:08 +0100 Message-Id: <1405625888-9056-1-git-send-email-ljalvs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 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 Signed-off-by: Luis Alves --- drivers/media/dvb-frontends/si2168.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 7980741..3fed522 100644 --- a/drivers/media/dvb-frontends/si2168.c +++ b/drivers/media/dvb-frontends/si2168.c @@ -619,8 +619,10 @@ static int si2168_probe(struct i2c_client *client, /* create mux i2c adapter for tuner */ s->adapter = i2c_add_mux_adapter(client->adapter, &client->dev, s, 0, 0, 0, si2168_select, si2168_deselect); - if (s->adapter == NULL) + if (s->adapter == NULL) { + ret = -ENODEV; goto err; + } /* create dvb_frontend */ memcpy(&s->fe.ops, &si2168_ops, sizeof(struct dvb_frontend_ops));