OMAP: omap_device: when building return platform_device instead of omap_device
authorKevin Hilman <khilman@ti.com>
Thu, 21 Jul 2011 20:48:45 +0000 (13:48 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 23:35:46 +0000 (16:35 -0700)
commit3528c58eb9e818b7821501afa2916eb12131994a
tree078de60ef5e54b7028220c5cc58c93fe84d8e6b6
parenta2a28ad9969616fa6d7b243ecf334dc6983992cf
OMAP: omap_device: when building return platform_device instead of omap_device

All of the device init and device driver interaction with omap_device
is done using platform_device pointers.  To make this more explicit,
have omap_device return a platform_device pointer instead of an
omap_device pointer.

All current users of the omap_device pointer were only using it to get
at the platform_device pointer or struct device pointer, so fixing all
of the users was trivial.

This also makes it more difficult for device init code to directly
access members of struct omap_device, and allows for easier changing
of omap_device internals.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 files changed:
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/display.c
arch/arm/mach-omap2/dma.c
arch/arm/mach-omap2/gpio.c
arch/arm/mach-omap2/hsmmc.c
arch/arm/mach-omap2/hwspinlock.c
arch/arm/mach-omap2/mcbsp.c
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/serial.c
arch/arm/mach-omap2/sr_device.c
arch/arm/plat-omap/i2c.c
arch/arm/plat-omap/include/plat/omap_device.h
arch/arm/plat-omap/omap_device.c