From patchwork Tue Mar 8 11:08:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 617881 X-Patchwork-Delegate: tony@atomide.com 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 p28B8BeA026389 for ; Tue, 8 Mar 2011 11:08:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753887Ab1CHLIK (ORCPT ); Tue, 8 Mar 2011 06:08:10 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:52226 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753828Ab1CHLII (ORCPT ); Tue, 8 Mar 2011 06:08:08 -0500 Received: by mail-ww0-f44.google.com with SMTP id 36so951436wwa.1 for ; Tue, 08 Mar 2011 03:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:from:subject:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version:content-type :content-transfer-encoding; bh=1A7lWzsOeipkP5uwtgSIi6Q0Vj/Zhg+3nyuPaJN2Kj0=; b=uA7yzncfwkUfq8GggbyyEduRqD5pYwRA/NPOifJolvNv1WC8RfveEp00bZ+tnL3yaE pPzHcEAOCfN26qCohjK+SmyLTzHWB3T/ceKos62yBpuNXdSVo2akB/tGpDB0CJFZSWSp f3qU61WFmBhm9YRUcecr1JSJMrs3fgr/J88yo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:subject:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; b=SOqU9fZAFTkqJn8xahrW1Ou0EbBpL3MrgHc9y6RAHsQIu8yFosCcDUsgRy78vyxvKu zp9GRQRMhq+R+/vzAQtcNvq0eKucdwpDLcTvfyQ8PkhCsnxqssn3rjTZmUSBuSQa8OIo x8QPC9WQDJWZkAh/P+wHS5yBiXY1bAYT5lw8o= Received: by 10.227.93.36 with SMTP id t36mr4460408wbm.11.1299582487433; Tue, 08 Mar 2011 03:08:07 -0800 (PST) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id o6sm481021wbo.9.2011.03.08.03.08.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 03:08:07 -0800 (PST) From: Andy Green Subject: [PATCH 2 06/18] I2C: OMAP1: set IP revision in platform data To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: patches@linaro.org, Ben Dooks , Andy Green Date: Tue, 08 Mar 2011 11:08:05 +0000 Message-ID: <20110308110804.23531.45336.stgit@otae.warmcat.com> In-Reply-To: <20110308105934.23531.83540.stgit@otae.warmcat.com> References: <20110308105934.23531.83540.stgit@otae.warmcat.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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]); Tue, 08 Mar 2011 11:08:11 +0000 (UTC) diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 3341ca4..a938df0 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -108,6 +108,9 @@ static inline int omap1_i2c_add_bus(int bus_id) res[1].start = INT_I2C; pdata = &i2c_pdata[bus_id - 1]; + /* all OMAP1 have IP version 1 register set */ + pdata->rev = OMAP_I2C_IP_VERSION_1; + return platform_device_register(pdev); }