OMAP: omap_device: decouple platform_device from omap_device
authorKevin Hilman <khilman@ti.com>
Thu, 21 Jul 2011 20:58:51 +0000 (13:58 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 23:35:47 +0000 (16:35 -0700)
commitd66b3fe436a296f102e8944247972fc0c17ddf26
treed1b15398c457f54380fb50ed3fb8d6756043cb0c
parent9f8b6949d78f1306eef0edc14bc1fbcaf3e58ad0
OMAP: omap_device: decouple platform_device from omap_device

Rather than embedding a struct platform_device inside a struct
omap_device, decouple them, leaving only a pointer to the
platform_device inside the omap_device.

Use the arch-specific data field of the platform_device (pdev_archdata)
to add an omap_device pointer after the platform_device has been created.

Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/opp.c
arch/arm/plat-omap/include/plat/omap_device.h
arch/arm/plat-omap/omap_device.c