From: Kevin Hilman <khilman@deeprootsystems.com>
Date: Tue, 6 Sep 2011 20:04:10 +0000 (+0100)
Subject: ARM: 7082/1: platform_device: pdev_archdata: add omap_device pointer
X-Git-Tag: firefly_0821_release~3680^2~4145^2~19^2~19^2
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fbe01f51a8260c1f0a66e8730c4fd2c5160ecb91;p=firefly-linux-kernel-4.4.55.git

ARM: 7082/1: platform_device: pdev_archdata: add omap_device pointer

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 <rmk+kernel@arm.linux.org.uk>

Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---

diff --git a/arch/arm/include/asm/device.h b/arch/arm/include/asm/device.h
index 9f390ce335cb..b5c9f5b1f6a3 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