From patchwork Thu Jan 13 04:43:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent McIntyre X-Patchwork-Id: 475271 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0D4hR0K006814 for ; Thu, 13 Jan 2011 04:43:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178Ab1AMEnZ (ORCPT ); Wed, 12 Jan 2011 23:43:25 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:55779 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752027Ab1AMEnZ (ORCPT ); Wed, 12 Jan 2011 23:43:25 -0500 Received: by yxt3 with SMTP id 3so524464yxt.19 for ; Wed, 12 Jan 2011 20:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=lJokpiq84vbnx67Z0fBdgdFmA/9Pt/r8M6q+5X8VkRs=; b=JXqZiR2QTenRaaXBVIvAaQQ0RUpb3ptZVFQQF7pL32x8JqeqtuMhk1DdbQQ+fR/0m8 GD77UR9qC/Vpd8FK9Z8xlQYF+1eV5kBqqd51vJe4iRvp0KCrn591aYiwhkhUOgFgJSLe CSgEK0sibh414HI1XPqvgHILtfpDPHigeeSvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=Pcozv04z0dEkBjoQE/7LjOqOZ5bG5Dm3YzXDeWXmjhpPZiNdxE6Z6iH39wTQiVC+yv PpzWOl00rl5hTKIx3MxFK/0TqwLpvX/RqJaTFoUs7iJc+IaBOo5V+mVxGX1bqNLcID5K ep/D7Xgn12KHSM4TcWjMIFXjODXd/tcBblDio= MIME-Version: 1.0 Received: by 10.151.153.10 with SMTP id f10mr3187836ybo.21.1294893804315; Wed, 12 Jan 2011 20:43:24 -0800 (PST) Received: by 10.151.7.18 with HTTP; Wed, 12 Jan 2011 20:43:24 -0800 (PST) Date: Thu, 13 Jan 2011 15:43:24 +1100 Message-ID: Subject: [patch] addition to v2.6.35_i2c_new_probed_device.patch (was: Re: Debug code in HG repositories) From: Vincent McIntyre To: Mauro Carvalho Chehab Cc: Hans Verkuil , Devin Heitmueller , linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 13 Jan 2011 04:43:29 +0000 (UTC) From 1b44e5c3b2886224042d9c20649311c231db3ccd Mon Sep 17 00:00:00 2001 From: Vince McIntyre Date: Thu, 13 Jan 2011 15:30:13 +1100 Subject: [PATCH] To compile against 2.6.32, drop extra arg when calling i2c_new_probed_device() Signed-off-by: Vince McIntyre --- drivers/media/video/hdpvr/hdpvr-i2c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/hdpvr/hdpvr-i2c.c b/drivers/media/video/hdpvr/hdpvr-i2c.c index 24966aa..129639a 100644 --- a/drivers/media/video/hdpvr/hdpvr-i2c.c +++ b/drivers/media/video/hdpvr/hdpvr-i2c.c @@ -59,7 +59,7 @@ static int hdpvr_new_i2c_ir(struct hdpvr_device *dev, struct i2c_adapter *adap, break; } - return i2c_new_probed_device(adap, &info, addr_list, NULL) == NULL ? + return i2c_new_probed_device(adap, &info, addr_list) == NULL ? -1 : 0; } -- 1.7.0.4