[PATCH 8/9] ARM: platform_device: pdev_archdata: add omap_device pointer

2011-08-05 Thread Kevin Hilman
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 
---
 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
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 8/9] ARM: platform_device: pdev_archdata: add omap_device pointer

2011-08-06 Thread Grant Likely
On Sat, Aug 6, 2011 at 1:19 AM, Kevin Hilman  wrote:
> 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 

Acked-by: Grant Likely 

> ---
>  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
> --
> 1.7.6
>
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html