From patchwork Thu Nov 20 20:33:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 5350741 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 511549F1E1 for ; Thu, 20 Nov 2014 20:34:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9E8F0201EF for ; Thu, 20 Nov 2014 20:34:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8C062018E for ; Thu, 20 Nov 2014 20:34:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758054AbaKTUeI (ORCPT ); Thu, 20 Nov 2014 15:34:08 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:55737 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758033AbaKTUeG (ORCPT ); Thu, 20 Nov 2014 15:34:06 -0500 Received: by mail-lb0-f181.google.com with SMTP id l4so2997509lbv.12 for ; Thu, 20 Nov 2014 12:34:05 -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 :in-reply-to:references; bh=J9urj9MgPZj+M27nuJkGrncRg0e2oivXSVeOfnk5NDs=; b=ea4hUPbGEzvBqgF96by0hn2o4vjwaOOXbzrCv6dO3hB+dbq95HLtL6swGqY37RVIF0 GRfPSmHGq7aqerBWQ7ktE7n/UPv+wq1gg3ltbtVtuEBzjNRUgHjZBclRiAZvzd5D9Np/ TC+sLqrGSwpGq5lEcM1GuNz7InP0R98NnUhoxGDU/11Sy9DclIQsFE+0GD8lbPkoy6fI QHZw6GJrNF1hgDDyd9fr9By6axKv5zzSJ3uFHsBUks5tnAJdsfFHg7Na4vbT1+YdKg90 NXRKNk8drZNc7V8+vXh0vHp7WTR8F62Gt78oyTX4EtrrXwr99wI/EaVLG8PRxkh1Nl0K kGKw== X-Gm-Message-State: ALoCoQlpEUWNoPF5YtZoD/eept7dsQ1fdpvgQf0QGj+m4s3mfX+qpG0io5hOTlzhcIloGpts+lEg X-Received: by 10.112.137.39 with SMTP id qf7mr212655lbb.47.1416515645413; Thu, 20 Nov 2014 12:34:05 -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.34.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Nov 2014 12:34:04 -0800 (PST) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH 3/3] em28xx: initialize si2168_config struct Date: Thu, 20 Nov 2014 22:33:49 +0200 Message-Id: <1416515629-22183-3-git-send-email-olli.salonen@iki.fi> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416515629-22183-1-git-send-email-olli.salonen@iki.fi> References: <1416515629-22183-1-git-send-email-olli.salonen@iki.fi> 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/em28xx/em28xx-dvb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c index 65a456d..5a94f17 100644 --- a/drivers/media/usb/em28xx/em28xx-dvb.c +++ b/drivers/media/usb/em28xx/em28xx-dvb.c @@ -1553,6 +1553,7 @@ static int em28xx_dvb_init(struct em28xx *dev) struct si2157_config si2157_config; /* attach demod */ + memset(&si2168_config, 0, sizeof(si2168_config)); si2168_config.i2c_adapter = &adapter; si2168_config.fe = &dvb->fe[0]; si2168_config.ts_mode = SI2168_TS_PARALLEL;