From patchwork Tue Mar 15 19:56:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 636961 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 p2FJucAF006735 for ; Tue, 15 Mar 2011 19:56:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753577Ab1COT4h (ORCPT ); Tue, 15 Mar 2011 15:56:37 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:62524 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753133Ab1COT4g (ORCPT ); Tue, 15 Mar 2011 15:56:36 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so915512wya.19 for ; Tue, 15 Mar 2011 12:56:36 -0700 (PDT) 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=G0Nfd8btJsj/gcEM7Xcx4Kt16wOmXGoOocDtXyjF1y0=; b=XbEf2GNrm0gJi9wVYx965xFhfY/zIpjnI1MiAa+A78D4ssT8SlDaMAJYJYB349bzoY UuwRoz/W2xVBOg7vKlWxi9hr8J6WUiRgrE5uNBKI/kX/rUVL32H4bYlDDBzwyrWx2oMk Afk/9YSaTJNfBVg5I5NIIDVKzTJULof7Aa+4Q= 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=xLBvsHzB6MqmdpEPgxFAhGEngAB8Vuf+MrYm3SnKFjOp9V9LzQpLXieMofGNaU6DWR XMzgvEdxciLl+4YjuDeQ6VcOUYZ+G4DtFeCTmleGBRXgvWrjKEb+4KQaIASOzqcGl6PD Zz78+eDXjI3t/6jW8/UaqeMfnaOfRodXk3AaM= Received: by 10.216.64.201 with SMTP id c51mr9652244wed.6.1300218996178; Tue, 15 Mar 2011 12:56:36 -0700 (PDT) Received: from otae.warmcat.com (s15404224.onlinehome-server.info [87.106.134.80]) by mx.google.com with ESMTPS id a50sm103394wer.42.2011.03.15.12.56.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 12:56:35 -0700 (PDT) From: Andy Green Subject: [PATCH 3 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, 15 Mar 2011 19:56:34 +0000 Message-ID: <20110315195633.30000.50623.stgit@otae.warmcat.com> In-Reply-To: <20110315195147.30000.86184.stgit@otae.warmcat.com> References: <20110315195147.30000.86184.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, 15 Mar 2011 19:56:38 +0000 (UTC) diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index a4f8003..0a1b5af 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); }