serial: omap: don't access the platform_device
authorFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 12:45:20 +0000 (15:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:17:00 +0000 (09:17 -0700)
commitd8ee4ea68ff9c0f13646070aeada668a4eae9189
tree92f05de31dc45bb4e5f799f5d4b0fa59b475def1
parent27788c5fe6af98c34950326b62778da15e30eb55
serial: omap: don't access the platform_device

The driver doesn't need to know about its platform_device.

Everything the driver needs can be done through the
struct device pointer. In case we need to use the
OMAP-specific PM function pointers, those can make
sure to find the device's platform_device pointer
so they can find the struct omap_device through
pdev->archdata field.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/include/plat/omap-serial.h
drivers/tty/serial/omap-serial.c