From patchwork Sat Nov 28 11:36:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wong X-Patchwork-Id: 63475 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nASBaWaQ020522 for ; Sat, 28 Nov 2009 11:36:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752908AbZK1LgZ (ORCPT ); Sat, 28 Nov 2009 06:36:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753107AbZK1LgY (ORCPT ); Sat, 28 Nov 2009 06:36:24 -0500 Received: from mail-px0-f173.google.com ([209.85.216.173]:63239 "EHLO mail-px0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbZK1LgY (ORCPT ); Sat, 28 Nov 2009 06:36:24 -0500 Received: by pxi3 with SMTP id 3so1633943pxi.22 for ; Sat, 28 Nov 2009 03:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type; bh=fkbxOEaPLamqfPBCEFZgW+IV4Cw2sRr3LVPWhULLsVA=; b=EBVmx6OcsSn3GkNdqAu46r7CSOCupBf7BmidAZDbA5FDPy20zhuS2XjLz4wTxd6Xwe /fY6fW8O+i2/mdv1FOORFzouVuQs1fvjNiap9rMuMZKHstvoH9exD7UonaxWJBE+4hau UvxhBqhA0Yh/OtxYUkVhjgS6W8Y8oVnN+1g4U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type; b=aJ0oYGreavDJPXIt1cfH9WBvW4ifnhk/yja+LDBzjQ9o/dg5Dd7ixDlje8tmTO6s0v 7COV/v88CNkJfTwT9l9SDPNvMZocVv/81iVLjgSxM7A8YCQgeKlLqsPX0rZ+q8dsvNjq acASCtAgNDeUxLjAK35N9WqueImd4VH+Mj22A= Received: by 10.115.65.11 with SMTP id s11mr3696430wak.170.1259408190239; Sat, 28 Nov 2009 03:36:30 -0800 (PST) Received: from ?192.168.0.3? (n219073044176.netvigator.com [219.73.44.176]) by mx.google.com with ESMTPS id 22sm1874747pxi.10.2009.11.28.03.36.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Nov 2009 03:36:29 -0800 (PST) Message-ID: <4B110B3A.3030401@gmail.com> Date: Sat, 28 Nov 2009 19:36:26 +0800 From: "David T. L. Wong" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Mauro Carvalho Chehab CC: v4l-dvb Subject: [PATCH] cxusb: Mygica D689 compilation warning fix and clean up Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c @@ -1195,7 +1195,6 @@ static int cxusb_mygica_d689_frontend_attach(struct dvb_usb_adapter *adap) { struct dvb_usb_device *d = adap->dev; - int n; /* Select required USB configuration */ if (usb_set_interface(d->udev, 0, 0) < 0) @@ -1209,15 +1208,6 @@ usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, d->props.adapter[0].stream.endpoint)); -#if 0 - /* Drain USB pipes to avoid hang after reboot */ - for (n = 0; n < 5; n++) { - cxusb_d680_dmb_drain_message(d); - cxusb_d680_dmb_drain_video(d); - msleep(200); - } -#endif - /* Reset the tuner */ if (cxusb_d680_dmb_gpio_tuner(d, 0x07, 0) < 0) { err("clear tuner gpio failed");