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: 1027802 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p721EPY7028271 for ; Tue, 2 Aug 2011 01:14:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752952Ab1HBBOY (ORCPT ); Mon, 1 Aug 2011 21:14:24 -0400 Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]:40716 "EHLO na3sys009aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752907Ab1HBBOY (ORCPT ); Mon, 1 Aug 2011 21:14:24 -0400 Received: from mail-pz0-f48.google.com ([209.85.210.48]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKTjdPb1lNjtxji8JcIwIsvDHFhnc4FmGz@postini.com; Mon, 01 Aug 2011 18:14:24 PDT Received: by mail-pz0-f48.google.com with SMTP id 32so13817254pzk.35 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 Cc: linux-omap@vger.kernel.org, Grant Likely 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 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, 02 Aug 2011 01:14:25 +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