From patchwork Tue Aug 2 01:14:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 1027812 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p721EhBn014743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Aug 2011 01:15:03 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qo3Z0-0008DI-7I; Tue, 02 Aug 2011 01:14:30 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qo3Yz-0004a9-PG; Tue, 02 Aug 2011 01:14:29 +0000 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]) by canuck.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qo3Yw-0004Zq-7Z for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2011 01:14:27 +0000 Received: from mail-pz0-f52.google.com ([209.85.210.52]) (using TLSv1) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKTjdPb1lNjtxji8JcIwIsvDHFhnc4FmGz@postini.com; Mon, 01 Aug 2011 18:14:26 PDT Received: by mail-pz0-f52.google.com with SMTP id 13so11030049pzd.25 for ; Mon, 01 Aug 2011 18:14:23 -0700 (PDT) Received: by 10.68.39.133 with SMTP id p5mr1749106pbk.294.1312247662799; Mon, 01 Aug 2011 18:14:22 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net [24.19.7.36]) by mx.google.com with ESMTPS id p7sm6150170pbn.33.2011.08.01.18.14.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Aug 2011 18:14:22 -0700 (PDT) From: Kevin Hilman To: linux-arm-kernel@lists.infradead.org, Russell King Subject: [PATCH] ARM: platform_device: pdev_archdata: add omap_device pointer Date: Mon, 1 Aug 2011 18:14:52 -0700 Message-Id: <1312247692-13727-1-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.6 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110801_211426_525482_A1B9606E X-CRM114-Status: GOOD ( 11.04 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.205 listed in list.dnswl.org] Cc: Grant Likely , linux-omap@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 02 Aug 2011 01:15:03 +0000 (UTC) Add omap_device pointer to the ARM-specific arch data in the platform_device. This will be used to attach OMAP-specific device-data to the platform device with device lifetime. Suggested-by: Russell King Cc: Grant Likely Signed-off-by: Kevin Hilman --- Applies to v3.0 arch/arm/include/asm/device.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/device.h b/arch/arm/include/asm/device.h index 9f390ce..b5c9f5b 100644 --- a/arch/arm/include/asm/device.h +++ b/arch/arm/include/asm/device.h @@ -12,7 +12,12 @@ struct dev_archdata { #endif }; +struct omap_device; + struct pdev_archdata { +#ifdef CONFIG_ARCH_OMAP + struct omap_device *od; +#endif }; #endif