From patchwork Tue Feb 16 20:17:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 8331321 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D456BC02AA for ; Tue, 16 Feb 2016 20:18:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0738820272 for ; Tue, 16 Feb 2016 20:18:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10DC8202E9 for ; Tue, 16 Feb 2016 20:18:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756064AbcBPUR7 (ORCPT ); Tue, 16 Feb 2016 15:17:59 -0500 Received: from mail-lf0-f41.google.com ([209.85.215.41]:33587 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756057AbcBPUR6 (ORCPT ); Tue, 16 Feb 2016 15:17:58 -0500 Received: by mail-lf0-f41.google.com with SMTP id m1so115091676lfg.0 for ; Tue, 16 Feb 2016 12:17:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EJXH+taTU3yVpfK3UgbZ+AXoaiBeRKCKKkizqbu9rhE=; b=KzDO4LBSMROMjpYbgWyqrn/6aZw81Fh5uwPo40MOgt78xM8UVKrBHy+ZZWIew0BiE6 eQrEar1RRVv45DdMTPq1PCFr8qTPOssier+HE9hIq38SqV1njOuUYlsbJZ71BFXD2QX5 PVW+1D9iU8nMl5t0bpBtUpPq6KhHgxMPm+Y4Ak9sP2eHMWPolXFis8LDx9K0k79lszLv /VaTklItRQyTjEmzraHi+D6Hd7ria8SjDqxgHxXY4jN1MiuBHuzLHOK65NeA/sZTFXOu OSXePIKWIPkjOSCSxPQnXeaqy+bo2tmeRW5kOKy3oouhG+d/bEoSAI6kMOlof0BkuYUu 9TtA== X-Gm-Message-State: AG10YOQp1/eXM8oLlXOYW9QqPB0DkdwRprlZXU+aqlr6CC8TtYeOmGKb/0zKcW2BJnnMwg== X-Received: by 10.25.148.76 with SMTP id w73mr9061442lfd.31.1455653877017; Tue, 16 Feb 2016 12:17:57 -0800 (PST) Received: from dl160.lan (87-93-106-106.bb.dnainternet.fi. [87.93.106.106]) by smtp.gmail.com with ESMTPSA id ph5sm3494947lbb.44.2016.02.16.12.17.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Feb 2016 12:17:56 -0800 (PST) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH 1/2] cx23885: incorrect I2C bus used in the CI registration Date: Tue, 16 Feb 2016 22:17:44 +0200 Message-Id: <1455653865-13005-1-git-send-email-olli.salonen@iki.fi> 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 This patch fixes a bug that was introduced by the commit: commit 2b0aac3011bc7a9db27791bed4978554263ef079 Author: Mauro Carvalho Chehab Date: Tue Dec 23 13:48:07 2014 -0200 [media] cx23885: move CI/MAC registration to a separate function Signed-off-by: Olli Salonen --- drivers/media/pci/cx23885/cx23885-dvb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c index 5131c9f..6e40dec 100644 --- a/drivers/media/pci/cx23885/cx23885-dvb.c +++ b/drivers/media/pci/cx23885/cx23885-dvb.c @@ -1139,7 +1139,7 @@ static int dvb_register_ci_mac(struct cx23885_tsport *port) u8 eeprom[256]; /* 24C02 i2c eeprom */ struct sp2_config sp2_config; struct i2c_board_info info; - struct cx23885_i2c *i2c_bus2 = &dev->i2c_bus[1]; + struct cx23885_i2c *i2c_bus = &dev->i2c_bus[0]; /* attach CI */ memset(&sp2_config, 0, sizeof(sp2_config)); @@ -1151,7 +1151,7 @@ static int dvb_register_ci_mac(struct cx23885_tsport *port) info.addr = 0x40; info.platform_data = &sp2_config; request_module(info.type); - client_ci = i2c_new_device(&i2c_bus2->i2c_adap, &info); + client_ci = i2c_new_device(&i2c_bus->i2c_adap, &info); if (client_ci == NULL || client_ci->dev.driver == NULL) return -ENODEV; if (!try_module_get(client_ci->dev.driver->owner)) {