From patchwork Mon Nov 1 09:25:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 294242 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 oA19MmdL013212 for ; Mon, 1 Nov 2010 09:22:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754377Ab0KAJWg (ORCPT ); Mon, 1 Nov 2010 05:22:36 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:38856 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754740Ab0KAJWg (ORCPT ); Mon, 1 Nov 2010 05:22:36 -0400 Received: by ywc21 with SMTP id 21so635785ywc.19 for ; Mon, 01 Nov 2010 02:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=yG4GkjbMWsIrQxDHCfvqA9gs4ddXHGGJnrkpwhP8sV4=; b=V2q6cy/QzAzwgM0EwwrSHGzt8s5cRFvQBV4pONzeLanfyAN9wNo8gcuQxuLSISjb5E 4y3l4ykTvwcEb0+e7yyqebfQnTIjdUlAX3pQP3rwhGjiypMYw0HELJHzC98Yw0UTPVdZ UEIrIpboQkJ5bcwoy7S3YPNtkiJKweUldi8xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=B/ESLXJR7VucszrYxqdMBW4+eBrOFQkw8y3S0xQwBN/s1ZSNcuSNQRaZtARfiM6KiD mLIHaPlkwb3LovY7xDLUHyuHKFOlH0RkUfFzYRHbgJAPqBHLG/3hL1vE+B1JkjeSn6eU boMI3ur5U15U19WL17JZjC3Qvce9sZy6uaPxQ= Received: by 10.91.12.18 with SMTP id p18mr8464315agi.48.1288603355596; Mon, 01 Nov 2010 02:22:35 -0700 (PDT) Received: from [192.168.100.50] (60-251-136-127.HINET-IP.hinet.net [60.251.136.127]) by mx.google.com with ESMTPS id z4sm5085236yhz.1.2010.11.01.02.22.33 (version=SSLv3 cipher=RC4-MD5); Mon, 01 Nov 2010 02:22:35 -0700 (PDT) Subject: [PATCH] V4L/DVB: tea6415c: return -EIO if i2c_check_functionality fails From: Axel Lin To: linux-kernel Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org Date: Mon, 01 Nov 2010 17:25:39 +0800 Message-Id: <1288603539.3831.2.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 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.3 (demeter1.kernel.org [140.211.167.41]); Mon, 01 Nov 2010 09:22:49 +0000 (UTC) diff --git a/drivers/media/video/tea6415c.c b/drivers/media/video/tea6415c.c index 3e99cea..19621ed 100644 --- a/drivers/media/video/tea6415c.c +++ b/drivers/media/video/tea6415c.c @@ -148,7 +148,7 @@ static int tea6415c_probe(struct i2c_client *client, /* let's see whether this adapter can support what we need */ if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WRITE_BYTE)) - return 0; + return -EIO; v4l_info(client, "chip found @ 0x%x (%s)\n", client->addr << 1, client->adapter->name);