From patchwork Thu Nov 20 20:33:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 5350721 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 81F1A9F1E1 for ; Thu, 20 Nov 2014 20:34:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CBBC22018E for ; Thu, 20 Nov 2014 20:34:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D4309201EF for ; Thu, 20 Nov 2014 20:34:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758045AbaKTUeA (ORCPT ); Thu, 20 Nov 2014 15:34:00 -0500 Received: from mail-la0-f45.google.com ([209.85.215.45]:61440 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758033AbaKTUeA (ORCPT ); Thu, 20 Nov 2014 15:34:00 -0500 Received: by mail-la0-f45.google.com with SMTP id gq15so3134754lab.32 for ; Thu, 20 Nov 2014 12:33:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=+41rdmPYf0Q3UhLpPqatlMBUXDfAfNfCjc0mzjaDxIY=; b=g2Ov+9bU96NU7ibsPeigQe+PtEMu7RV5WTMp79u2KVm5eC8/yR6SKKetcGUFbL3qkn VnrKHYJkm99NAGkELejLVc7+amsEpECtS0uM9ZATYQvcIUIjH5lk63yZFpfzrkgrxgS2 9FSd/SfKW+Q9tnK0o3KgqYAlI3ScBwYytz5XZyeLb4aol8bOQ6UAtY4sfOLAPVvPXvXE x8VrU0aUcQHKZmVtC6reM5L6eX0ypzQFWsktjhO/U2TAxnf5jIkWYMzARdHi0POCkgPh pu+MFAmqpXZ6VT0hN2AID87vo02z0C1vtXpgmYnrP0vPCzRUorhuOnjp8TZgaARgeELy hmSQ== X-Gm-Message-State: ALoCoQkHlCt2w2/Tu0JCmSoKIKlYTyKYvZ+9za8f6GDKgtrXQTRYhs1IJsivuc1woWf8iUEAAELJ X-Received: by 10.112.130.65 with SMTP id oc1mr257891lbb.7.1416515639016; Thu, 20 Nov 2014 12:33:59 -0800 (PST) Received: from dl160.lan (188-67-15-102.bb.dnainternet.fi. [188.67.15.102]) by mx.google.com with ESMTPSA id v4sm754990lav.25.2014.11.20.12.33.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Nov 2014 12:33:58 -0800 (PST) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH 1/3] cxusb: initialize si2168_config struct Date: Thu, 20 Nov 2014 22:33:47 +0200 Message-Id: <1416515629-22183-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, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 When new parameters are added for si2168 driver, the parameters have to be explicitly defined for each device if the si2168_config struct is not initialized to all zeros. Signed-off-by: Olli Salonen --- drivers/media/usb/dvb-usb/cxusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c index 356abb3..ef73c93 100644 --- a/drivers/media/usb/dvb-usb/cxusb.c +++ b/drivers/media/usb/dvb-usb/cxusb.c @@ -1435,6 +1435,7 @@ static int cxusb_tt_ct2_4400_attach(struct dvb_usb_adapter *adap) msleep(100); /* attach frontend */ + memset(&si2168_config, 0, sizeof(si2168_config)); si2168_config.i2c_adapter = &adapter; si2168_config.fe = &adap->fe_adap[0].fe; si2168_config.ts_mode = SI2168_TS_PARALLEL;